From 7e38a9f4428471492f5a654e39cc22507b4a77ba Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 12 Sep 2024 14:33:44 +0200 Subject: [PATCH] fix(kanban): make task creation loading spinner actually visible --- .../components/project/views/ProjectKanban.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/frontend/src/components/project/views/ProjectKanban.vue b/frontend/src/components/project/views/ProjectKanban.vue index 1e4d1fb91..1d43e33e9 100644 --- a/frontend/src/components/project/views/ProjectKanban.vue +++ b/frontend/src/components/project/views/ProjectKanban.vue @@ -547,6 +547,9 @@ async function updateTaskPosition(e) { } function toggleShowNewTaskInput(bucketId: IBucket['id']) { + if (loading.value || taskLoading.value) { + return + } showNewTaskInput.value[bucketId] = !showNewTaskInput.value[bucketId] newTaskInputFocused.value = false } @@ -563,6 +566,7 @@ async function addTaskToBucket(bucketId: IBucket['id']) { bucketId, projectId: project.value.id, }) + toggleShowNewTaskInput(bucketId) newTaskText.value = '' kanbanStore.addTaskToBucket(task) scrollTaskContainerToTop(bucketId) @@ -767,6 +771,18 @@ function unCollapseBucket(bucket: IBucket) { } + + +