projects: show no projects/projectgroups message
This commit is contained in:
parent
1275478185
commit
30fba20a2b
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h4 class="title is-4">Projects</h4>
|
<h4 class="title is-4">Projects</h4>
|
||||||
|
<div v-if="projects.length > 0">
|
||||||
<div class="item-list" v-for="project in projects" v-bind:key="project.id">
|
<div class="item-list" v-for="project in projects" v-bind:key="project.id">
|
||||||
<router-link
|
<router-link
|
||||||
tag="div"
|
tag="div"
|
||||||
|
@ -10,9 +11,12 @@
|
||||||
<span class="name">{{project.name}}</span>
|
<span class="name">{{project.name}}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else class="item-list">No projects</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<h4 class="title is-4">Project Groups</h4>
|
<h4 class="title is-4">Project Groups</h4>
|
||||||
|
<div v-if="projectgroups.length > 0">
|
||||||
<div class="item-list" v-for="projectgroup in projectgroups" v-bind:key="projectgroup.id">
|
<div class="item-list" v-for="projectgroup in projectgroups" v-bind:key="projectgroup.id">
|
||||||
<router-link
|
<router-link
|
||||||
tag="div"
|
tag="div"
|
||||||
|
@ -23,6 +27,8 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else class="item-list">No project groups</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in New Issue