Only show a list with tasks if there are any

This commit is contained in:
kolaente 2018-09-10 08:24:03 +02:00
parent 4193317283
commit 92fa942b18
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
</div>
</form>
<div class="box tasks">
<div class="box tasks" v-if="this.list.tasks.length > 0">
<label class="task" v-for="l in list.tasks" v-bind:key="l.id" v-bind:for="l.id">
<input @change="markAsDone" type="checkbox" v-bind:id="l.id" v-bind:checked="l.done">
{{l.text}}