Skip to content
Snippets Groups Projects
Commit 58ba64b8 authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Add confirmation message for enabling MRF policies from moderation dropdown

parent 92079893
No related branches found
No related tags found
No related merge requests found
......@@ -274,7 +274,8 @@ export default {
registrationReason: 'Registration Reason',
service: 'Service',
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?'
},
statuses: {
statuses: 'Statuses',
......
......@@ -182,7 +182,20 @@ export default {
this.$store.dispatch('DisableMfa', nickname)
},
enableTagPolicy() {
this.$store.dispatch('EnableTagPolicy')
this.$confirm(
this.$t('users.confirmEnablingTagPolicy'),
{
confirmButtonText: 'Yes',
cancelButtonText: 'Cancel',
type: 'warning'
}).then(() => {
this.$store.dispatch('EnableTagPolicy')
}).catch(() => {
this.$message({
type: 'info',
message: 'Canceled'
})
})
},
getPasswordResetToken(nickname) {
this.$emit('open-reset-token-dialog')
......
......@@ -258,7 +258,20 @@ export default {
}
},
enableTagPolicy() {
this.$store.dispatch('EnableTagPolicy')
this.$confirm(
this.$t('users.confirmEnablingTagPolicy'),
{
confirmButtonText: 'Yes',
cancelButtonText: 'Cancel',
type: 'warning'
}).then(() => {
this.$store.dispatch('EnableTagPolicy')
}).catch(() => {
this.$message({
type: 'info',
message: 'Canceled'
})
})
},
isLocalUser(user) {
return user.nickname && user.local
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment