Add on confirm success message

This commit is contained in:
Angelina Filippova 2020-09-01 02:08:04 +03:00
parent a99fe3833a
commit a0d0d25bfd
3 changed files with 10 additions and 1 deletions

View file

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

View file

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

View file

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