Remove task in kanban state when removing in task detail view
This commit is contained in:
parent
d409957de5
commit
687b8dc824
3 changed files with 32 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Reference in a new issue