fix(kanban): do not allow creating tasks in full bucket in frontend
This commit is contained in:
parent
134c2a1a80
commit
db5511c9d6
|
|
@ -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']) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue