fix: use correct listId when deleting bucket
This commit is contained in:
parent
dfe401a9dc
commit
d7ed5b8f11
1 changed files with 3 additions and 4 deletions
|
@ -484,11 +484,10 @@ export default {
|
||||||
this.showBucketDeleteModal = true
|
this.showBucketDeleteModal = true
|
||||||
},
|
},
|
||||||
deleteBucket() {
|
deleteBucket() {
|
||||||
const bucket = new BucketModel({
|
this.$store.dispatch('kanban/deleteBucket', {bucket: {
|
||||||
id: this.bucketToDelete,
|
id: this.bucketToDelete,
|
||||||
})
|
listId: parseInt(this.$route.params.listId),
|
||||||
|
}, params: this.params})
|
||||||
this.$store.dispatch('kanban/deleteBucket', {bucket: bucket, params: this.params})
|
|
||||||
.then(() => this.$message.success({message: this.$t('list.kanban.deleteBucketSuccess')}))
|
.then(() => this.$message.success({message: this.$t('list.kanban.deleteBucketSuccess')}))
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.showBucketDeleteModal = false
|
this.showBucketDeleteModal = false
|
||||||
|
|
Loading…
Reference in a new issue