Skip to content

Commit 6b1c4f6

Browse files
committed
Update todomvc.vue
1 parent 4d7f1a2 commit 6b1c4f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MyApp.Client/src/pages/todomvc.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<Iconify v-else icon="mdi:checkbox-blank-circle-outline" />
1717
</div>
1818
<div class="ml-3 flex-grow">
19-
<label :class="{'line-through':todo.isFinished}">{{ todo.text }}</label>
19+
<label :class="[todo.isFinished ? 'line-through' : '']">{{ todo.text }}</label>
2020
</div>
2121
<div>
2222
<Iconify v-if="todo.isFinished" icon="mdi:trash-can-outline" class="cursor-pointer" @click="store.removeTodo(todo.id)" />
@@ -44,7 +44,7 @@
4444
</div>
4545

4646
<div class="leading-8 ml-4">
47-
<a href="#" :class="{ invisible: store.finishedTodos.length === 0 }" @click.prevent="store.removeFinishedTodos()">
47+
<a href="#" :class="[store.finishedTodos.length === 0 ? 'invisible' : '']" @click.prevent="store.removeFinishedTodos()">
4848
clear <span class="hidden sm:inline">completed</span>
4949
</a>
5050
</div>

0 commit comments

Comments
 (0)