From a0d0d25bfdf9dbbb1d989348424b1068f1add230 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Tue, 1 Sep 2020 02:08:04 +0300 Subject: [PATCH] Add on confirm success message --- src/lang/en.js | 3 ++- src/views/users/components/ModerationDropdown.vue | 4 ++++ src/views/users/components/MultipleUsersMenu.vue | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lang/en.js b/src/lang/en.js index 41b81cf8..d51fa0e1 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -275,7 +275,8 @@ export default { service: 'Service', person: 'Person', enableTagPolicy: 'Enable MRF TagPolicy to manage user tags', - confirmEnablingTagPolicy: 'Are you sure you want to add TagPolicy to the list of enabled MRF policies?' + confirmEnablingTagPolicy: 'Are you sure you want to add TagPolicy to the list of enabled MRF policies?', + enableTagPolicySuccessMessage: 'MRF TagPolicy was enabled' }, statuses: { statuses: 'Statuses', diff --git a/src/views/users/components/ModerationDropdown.vue b/src/views/users/components/ModerationDropdown.vue index 34e29963..d54efe43 100644 --- a/src/views/users/components/ModerationDropdown.vue +++ b/src/views/users/components/ModerationDropdown.vue @@ -189,6 +189,10 @@ export default { cancelButtonText: 'Cancel', type: 'warning' }).then(() => { + this.$message({ + type: 'success', + message: this.$t('users.enableTagPolicySuccessMessage') + }) this.$store.dispatch('EnableTagPolicy') }).catch(() => { this.$message({ diff --git a/src/views/users/components/MultipleUsersMenu.vue b/src/views/users/components/MultipleUsersMenu.vue index f104ef24..bdf65006 100644 --- a/src/views/users/components/MultipleUsersMenu.vue +++ b/src/views/users/components/MultipleUsersMenu.vue @@ -265,6 +265,10 @@ export default { cancelButtonText: 'Cancel', type: 'warning' }).then(() => { + this.$message({ + type: 'success', + message: this.$t('users.enableTagPolicySuccessMessage') + }) this.$store.dispatch('EnableTagPolicy') }).catch(() => { this.$message({