mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
Bugfixing
This commit is contained in:
1 parent
1ef4bbd437
commit
d6ad4ee350
3 files changed
+4
-3
No files matched your search
@@ -142,6 +142,7 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.$events.on('on-task-deleted', (task) => {
|
this.$events.on('on-task-deleted', (task) => {
|
||||||
|
if (!this.masterTask) return
|
||||||
this.masterTask.subtasks = this.masterTask.subtasks.filter((subtask) => subtask.id != task.id)
|
this.masterTask.subtasks = this.masterTask.subtasks.filter((subtask) => subtask.id != task.id)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -43,9 +43,9 @@ export default {
|
|||||||
async deleteTask() {
|
async deleteTask() {
|
||||||
try {
|
try {
|
||||||
await this.$axios.delete(`v1/subtasks/${this.task.id}`)
|
await this.$axios.delete(`v1/subtasks/${this.task.id}`)
|
||||||
// this.$emit('on-task-deleted', this.task)
|
|
||||||
|
|
||||||
this.$store.commit('tm/delete_subtask', this.task)
|
this.$store.commit('tm/delete_subtask', this.task)
|
||||||
|
this.$emit('on-task-deleted', this.task)
|
||||||
this.closeModal()
|
this.closeModal()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$toast.error(error)
|
this.$toast.error(error)
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ export default {
|
|||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
})
|
})
|
||||||
|
|
||||||
this.$events.on("on-task-deleted", (task) => {
|
this.$events.on('on-task-deleted', (task) => {
|
||||||
if (task?.id == this.task?.id) this.closeModal()
|
if (task?.id == this.task?.id) this.closeModal()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user