delete task individually

This commit is contained in:
Julien Calixte
2023-04-19 23:52:33 +02:00
parent 7b0d2d7ae4
commit 2f982a4b3a
3 changed files with 29 additions and 0 deletions

View File

@@ -18,6 +18,9 @@ export const useTaskStore = defineStore('task-store', {
},
reset() {
this.tasks = []
},
remove(taskId: string) {
this.tasks = this.tasks.filter((task) => task.id !== taskId)
}
},
getters: {