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', service: 'Service',
person: 'Person', person: 'Person',
enableTagPolicy: 'Enable MRF TagPolicy to manage user tags', 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: 'Statuses', statuses: 'Statuses',

View file

@ -189,6 +189,10 @@ export default {
cancelButtonText: 'Cancel', cancelButtonText: 'Cancel',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$message({
type: 'success',
message: this.$t('users.enableTagPolicySuccessMessage')
})
this.$store.dispatch('EnableTagPolicy') this.$store.dispatch('EnableTagPolicy')
}).catch(() => { }).catch(() => {
this.$message({ this.$message({

View file

@ -265,6 +265,10 @@ export default {
cancelButtonText: 'Cancel', cancelButtonText: 'Cancel',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$message({
type: 'success',
message: this.$t('users.enableTagPolicySuccessMessage')
})
this.$store.dispatch('EnableTagPolicy') this.$store.dispatch('EnableTagPolicy')
}).catch(() => { }).catch(() => {
this.$message({ this.$message({