Fix bucket deletion
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
c1dc8c9864
commit
2582cebb97
|
@ -22,8 +22,6 @@ export default {
|
|||
text: err,
|
||||
actions: actions,
|
||||
})
|
||||
|
||||
context.loading = false
|
||||
},
|
||||
success(e, context, actions = []) {
|
||||
// Build the notification text from error response
|
||||
|
@ -41,7 +39,5 @@ export default {
|
|||
actions: actions,
|
||||
},
|
||||
})
|
||||
|
||||
context.loading = false
|
||||
},
|
||||
}
|
|
@ -236,7 +236,7 @@ export default {
|
|||
cancel()
|
||||
})
|
||||
},
|
||||
deleteBucket(ctx, bucket) {
|
||||
deleteBucket(ctx, {bucket, params}) {
|
||||
const cancel = setLoading(ctx, 'kanban')
|
||||
|
||||
const bucketService = new BucketService()
|
||||
|
@ -244,7 +244,7 @@ export default {
|
|||
.then(r => {
|
||||
ctx.commit('removeBucket', bucket)
|
||||
// We reload all buckets because tasks are being moved from the deleted bucket
|
||||
ctx.dispatch('loadBucketsForList', {listId: bucket.listId})
|
||||
ctx.dispatch('loadBucketsForList', {listId: bucket.listId, params: params})
|
||||
return Promise.resolve(r)
|
||||
})
|
||||
.catch(e => {
|
||||
|
|
|
@ -537,7 +537,7 @@ export default {
|
|||
listId: this.$route.params.listId,
|
||||
})
|
||||
|
||||
this.$store.dispatch('kanban/deleteBucket', bucket)
|
||||
this.$store.dispatch('kanban/deleteBucket', {bucket: bucket, params: this.params})
|
||||
.then(() => {
|
||||
this.success({message: 'The bucket has been deleted successfully.'}, this)
|
||||
})
|
||||
|
|
Reference in New Issue