From 09b7a903d2a707675afcdb52739692be75099166 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 15 Jan 2021 23:46:43 +0100 Subject: [PATCH] Add success message when modifying buckets --- src/styles/components/kanban.scss | 4 ---- src/views/list/views/Kanban.vue | 9 ++++++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/styles/components/kanban.scss b/src/styles/components/kanban.scss index cbb6bc7e..48a4972e 100644 --- a/src/styles/components/kanban.scss +++ b/src/styles/components/kanban.scss @@ -221,10 +221,6 @@ $crazy-height-calculation: '100vh - 4.5rem - 1.5rem - 1em - 1.5em - 8px'; a.dropdown-item { padding-right: 1rem; - - .input { - height: 2.25em; - } } } diff --git a/src/views/list/views/Kanban.vue b/src/views/list/views/Kanban.vue index ba67a504..2569321c 100644 --- a/src/views/list/views/Kanban.vue +++ b/src/views/list/views/Kanban.vue @@ -23,7 +23,7 @@

{{ bucket.title }}

@@ -532,6 +532,9 @@ export default { }) this.$store.dispatch('kanban/deleteBucket', bucket) + .then(() => { + this.success({message: 'The bucket has been deleted successfully.'}, this) + }) .catch(e => { this.error(e, this) }) @@ -560,6 +563,7 @@ export default { .then(r => { realBucket.title = r.title bucketTitleElement.blur() + this.success({message: 'The bucket title has been saved successfully.'}, this) }) .catch(e => { this.error(e, this) @@ -568,6 +572,9 @@ export default { updateBucket(bucket) { bucket.limit = parseInt(bucket.limit) this.$store.dispatch('kanban/updateBucket', bucket) + .then(() => { + this.success({message: 'The bucket limit been saved successfully.'}, this) + }) .catch(e => { this.error(e, this) })