1
0

Remove task in kanban state when removing in task detail view

This commit is contained in:
kolaente
2020-05-11 17:24:51 +02:00
parent d409957de5
commit 687b8dc824
3 changed files with 32 additions and 1 deletions

View File

@ -488,7 +488,7 @@
this.$nextTick(() => this.$refs[fieldName].$el.focus())
},
deleteTask() {
this.taskService.delete(this.task)
this.$store.dispatch('tasks/delete', this.task)
.then(() => {
this.success({message: 'The task been deleted successfully.'}, this)
router.back()