File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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)" />
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 >
You can’t perform that action at this time.
0 commit comments