Adding message when there is no task
This commit is contained in:
parent
e48daa0008
commit
22b6b9de57
2 changed files with 28 additions and 18 deletions
File diff suppressed because one or more lines are too long
|
@ -5,24 +5,34 @@
|
|||
</h3>
|
||||
<div class="block-content">
|
||||
<div
|
||||
v-for="group in tasks"
|
||||
v-bind:key="group.id"
|
||||
class="new-group"
|
||||
:title="'Group: '+group.name"
|
||||
v-if="tasks.length > 0"
|
||||
>
|
||||
<a :href="'#group-'+group.id">
|
||||
<p
|
||||
v-for="task in group.tasks"
|
||||
v-bind:key="task.id"
|
||||
:href="'#task-'+task.id"
|
||||
:class="statusText(task.status)+(task.active == 0 ? ' inactive' : '')"
|
||||
class="square"
|
||||
>
|
||||
<span class="small">{{task.id }}</span>
|
||||
</p>
|
||||
</a>
|
||||
<div
|
||||
v-for="group in tasks"
|
||||
v-bind:key="group.id"
|
||||
class="new-group"
|
||||
:title="'Group: '+group.name"
|
||||
>
|
||||
<a :href="'#group-'+group.id">
|
||||
<p
|
||||
v-for="task in group.tasks"
|
||||
v-bind:key="task.id"
|
||||
:href="'#task-'+task.id"
|
||||
:class="statusText(task.status)+(task.active == 0 ? ' inactive' : '')"
|
||||
class="square"
|
||||
>
|
||||
<span class="small">{{task.id }}</span>
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
<p class="spacer"> </p>
|
||||
</div>
|
||||
<div
|
||||
v-else
|
||||
>
|
||||
<center>Sorry, there is no task here.</center>
|
||||
|
||||
</div>
|
||||
<p class="spacer"> </p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Reference in a new issue