fix(kanban): make task creation loading spinner actually visible
(cherry picked from commit 7e38a9f4428471492f5a654e39cc22507b4a77ba)
This commit is contained in:
parent
b01e531fb7
commit
4a40bdfe89
@ -547,6 +547,9 @@ async function updateTaskPosition(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toggleShowNewTaskInput(bucketId: IBucket['id']) {
|
function toggleShowNewTaskInput(bucketId: IBucket['id']) {
|
||||||
|
if (loading.value || taskLoading.value) {
|
||||||
|
return
|
||||||
|
}
|
||||||
showNewTaskInput.value[bucketId] = !showNewTaskInput.value[bucketId]
|
showNewTaskInput.value[bucketId] = !showNewTaskInput.value[bucketId]
|
||||||
newTaskInputFocused.value = false
|
newTaskInputFocused.value = false
|
||||||
}
|
}
|
||||||
@ -563,6 +566,7 @@ async function addTaskToBucket(bucketId: IBucket['id']) {
|
|||||||
bucketId,
|
bucketId,
|
||||||
projectId: project.value.id,
|
projectId: project.value.id,
|
||||||
})
|
})
|
||||||
|
toggleShowNewTaskInput(bucketId)
|
||||||
newTaskText.value = ''
|
newTaskText.value = ''
|
||||||
kanbanStore.addTaskToBucket(task)
|
kanbanStore.addTaskToBucket(task)
|
||||||
scrollTaskContainerToBottom(bucketId)
|
scrollTaskContainerToBottom(bucketId)
|
||||||
@ -767,6 +771,18 @@ function unCollapseBucket(bucket: IBucket) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.control.is-loading {
|
||||||
|
&::after {
|
||||||
|
top: 30%;
|
||||||
|
right: 50%;
|
||||||
|
transform: translate(-50%, 0);
|
||||||
|
--loader-border-color: var(--grey-500);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
$ease-out: all .3s cubic-bezier(0.23, 1, 0.32, 1);
|
$ease-out: all .3s cubic-bezier(0.23, 1, 0.32, 1);
|
||||||
$bucket-width: 300px;
|
$bucket-width: 300px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user