From c99214842efb9538854e7ade612387647d6ad6e9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 19 Dec 2024 12:36:26 +0100 Subject: [PATCH] Fix kanban bucket limit --- frontend/src/components/project/views/ProjectKanban.vue | 6 ++++-- frontend/src/i18n/lang/en.json | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/project/views/ProjectKanban.vue b/frontend/src/components/project/views/ProjectKanban.vue index d7352c3cd..ff87347ed 100644 --- a/frontend/src/components/project/views/ProjectKanban.vue +++ b/frontend/src/components/project/views/ProjectKanban.vue @@ -196,10 +196,12 @@ icon="plus" variant="secondary" @click="toggleShowNewTaskInput(bucket.id)" + :disabled="bucket.count >= bucket.limit" + v-tooltip="bucket.count >= bucket.limit ? $t('project.kanban.bucketLimitReached') : ''" > {{ bucket.tasks.length === 0 ? $t('project.kanban.addTask') : $t('project.kanban.addAnotherTask') - }} + }} @@ -975,4 +977,4 @@ $filter-container-height: '1rem - #{$switch-view-height}'; .move-card-leave-active { display: none; } - \ No newline at end of file + diff --git a/frontend/src/i18n/lang/en.json b/frontend/src/i18n/lang/en.json index 7fb7d4321..775e63e32 100644 --- a/frontend/src/i18n/lang/en.json +++ b/frontend/src/i18n/lang/en.json @@ -365,7 +365,8 @@ "deleteBucketSuccess": "The bucket has been deleted successfully.", "bucketTitleSavedSuccess": "The bucket title has been saved successfully.", "bucketLimitSavedSuccess": "The bucket limit been saved successfully.", - "collapse": "Collapse this bucket" + "collapse": "Collapse this bucket", + "bucketLimitReached": "You have reached the bucket limit. Remove tasks or increase the limit to add new tasks." }, "pseudo": { "favorites": { @@ -1219,4 +1220,4 @@ "years": "year|years" } } -} \ No newline at end of file +}