1
0

fix(views): make bucket edit work

This commit is contained in:
kolaente
2024-03-16 15:19:17 +01:00
parent 445f1c06fa
commit 27cb6e3372
3 changed files with 14 additions and 15 deletions

View File

@ -346,18 +346,6 @@ export const useKanbanStore = defineStore('kanban', () => {
}
}
async function updateBucketTitle({id, title}: { id: IBucket['id'], title: IBucket['title'] }) {
const bucket = findById(buckets.value, id)
if (bucket?.title === title) {
// bucket title has not changed
return
}
await updateBucket({id, title})
success({message: i18n.global.t('project.kanban.bucketTitleSavedSuccess')})
}
return {
buckets,
isLoading: readonly(isLoading),
@ -376,7 +364,6 @@ export const useKanbanStore = defineStore('kanban', () => {
createBucket,
deleteBucket,
updateBucket,
updateBucketTitle,
}
})