1
0

fix(kanban): move task to done bucket when it was marked done from the task detail view

This commit is contained in:
kolaente
2024-07-17 13:56:43 +02:00
parent 3566b889be
commit ed5feee33a
3 changed files with 22 additions and 6 deletions

View File

@ -130,7 +130,8 @@
</DropdownItem>
<DropdownItem
v-tooltip="buckets.length <= 1 ? $t('project.kanban.deleteLast') : ''"
:class="{'is-disabled': buckets.length <= 1, 'has-text-danger': true}"
class="has-text-danger"
:class="{'is-disabled': buckets.length <= 1}"
icon-class="has-text-danger"
icon="trash-alt"
@click.stop="() => deleteBucketModal(bucket.id)"
@ -520,9 +521,7 @@ async function updateTaskPosition(e) {
}))
newTask.done = updatedTaskBucket.taskDone
if (updatedTaskBucket.bucketId !== newTask.bucketId) {
kanbanStore.removeTaskInBucket(newTask)
newTask.bucketId = updatedTaskBucket.bucketId
kanbanStore.addTaskToBucket(newTask)
kanbanStore.moveTaskToBucket(newTask, updatedTaskBucket.bucketId)
}
kanbanStore.setTaskInBucket(newTask)
}