forked from AkkomaGang/admin-fe
Add on confirm success message
This commit is contained in:
parent
a99fe3833a
commit
a0d0d25bfd
3 changed files with 10 additions and 1 deletions
|
@ -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',
|
||||||
|
|
|
@ -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({
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue