feat: don't update the bucket after updating task position

This commit is contained in:
kolaente 2021-10-17 14:52:48 +02:00
parent c329c37c7b
commit cc32ca244c
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -405,7 +405,7 @@ export default {
tasks, tasks,
} }
this.$store.dispatch('kanban/updateBucket', newBucket) this.$store.commit('kanban/setBucketById', newBucket)
}, },
updateTaskPosition(e) { updateTaskPosition(e) {
@ -428,10 +428,10 @@ export default {
} }
this.$store.dispatch('tasks/update', newTask) this.$store.dispatch('tasks/update', newTask)
// .finally(() => { .finally(() => {
this.taskUpdating[task.id] = false this.taskUpdating[task.id] = false
this.oneTaskUpdating = false this.oneTaskUpdating = false
// }) })
}, },
toggleShowNewTaskInput(bucketId) { toggleShowNewTaskInput(bucketId) {
this.showNewTaskInput[bucketId] = !this.showNewTaskInput[bucketId] this.showNewTaskInput[bucketId] = !this.showNewTaskInput[bucketId]