mirror of
https://github.com/anatolykopyl/vue-todo-list.git
synced 2026-03-26 04:45:17 +00:00
Added a line break
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<p>
|
||||
{{ todo.name }}
|
||||
<button @click="$emit('del-todo', todo.id)" class="delete">❌</button>
|
||||
<br>
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -34,9 +34,7 @@ const actions = {
|
||||
const mutations = {
|
||||
toggleComplete(state, id) {
|
||||
state.todos.forEach(element => {
|
||||
if (element.id == id) {
|
||||
element.completed = !element.completed
|
||||
}
|
||||
(element.id == id) && (element.completed = !element.completed)
|
||||
});
|
||||
},
|
||||
addTodo(state, n) {
|
||||
|
||||
Reference in New Issue
Block a user