fix: use correct listId when deleting bucket

This commit is contained in:
Dominik Pschenitschni 2021-10-11 13:57:02 +02:00
parent dfe401a9dc
commit d7ed5b8f11
No known key found for this signature in database
GPG key ID: B257AC0149F43A77

View file

@ -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