fix(kanban): do not allow creating tasks in full bucket in frontend

This commit is contained in:
kolaente 2025-03-19 15:28:18 +01:00
parent 134c2a1a80
commit db5511c9d6
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -576,6 +576,11 @@ async function addTaskToBucket(bucketId: IBucket['id']) {
newTaskText.value = ''
kanbanStore.addTaskToBucket(task)
scrollTaskContainerToTop(bucketId)
const bucket = kanbanStore.getBucketById(bucketId)
if (bucket && bucket.count >= bucket.limit) {
toggleShowNewTaskInput(bucketId)
}
}
function scrollTaskContainerToTop(bucketId: IBucket['id']) {