[timeline] delete a complete task

This commit is contained in:
Filip Kaluža committed 2023-01-11 11:46:11 +01:00
1 parent f1e3d63fc9
commit b04ddd219d
7 files changed
+98 -55

No files matched your search

@@ -44,6 +44,7 @@ export default {
await this.$axios.post(`v1/tasks/${task.id}`, task)
this.show = false
this.$emit('completeTask', task.id)
} catch (error) {
this.$toast.error(error)
}
@@ -39,6 +39,7 @@ export default {
try {
await this.$axios.delete(`v1/tasks/${this.task.id}`)
this.show = false
this.$emit('deleteTask', this.task.id)
} catch (error) {
this.$toast.error(error)
}