Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix kanban bucket limit #381

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions frontend/src/components/project/views/ProjectKanban.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}}
}}
</x-button>
</div>
</template>
Expand Down Expand Up @@ -975,4 +977,4 @@ $filter-container-height: '1rem - #{$switch-view-height}';
.move-card-leave-active {
display: none;
}
</style>
</style>
5 changes: 3 additions & 2 deletions frontend/src/i18n/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -1219,4 +1220,4 @@
"years": "year|years"
}
}
}
}
Loading