diff options
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue | 1 | ||||
-rw-r--r-- | src/views/AccessControl/LocalUserManagement/ModalUser.vue | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue b/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue index c08b39b9..b9df58f5 100644 --- a/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue +++ b/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue @@ -200,6 +200,7 @@ export default { created() { this.$store.dispatch('localUsers/getUsers'); this.$store.dispatch('localUsers/getAccountSettings'); + this.$store.dispatch('localUsers/getAccountRoles'); }, methods: { initModalUser(user) { diff --git a/src/views/AccessControl/LocalUserManagement/ModalUser.vue b/src/views/AccessControl/LocalUserManagement/ModalUser.vue index a9c0f6c5..f4a66e79 100644 --- a/src/views/AccessControl/LocalUserManagement/ModalUser.vue +++ b/src/views/AccessControl/LocalUserManagement/ModalUser.vue @@ -225,7 +225,6 @@ export default { }, data() { return { - privilegeTypes: ['Administrator', 'Operator', 'ReadOnly', 'NoAccess'], originalUsername: '', form: { status: true, @@ -246,6 +245,9 @@ export default { }, manualUnlockPolicy() { return !this.accountSettings.accountLockoutDuration; + }, + privilegeTypes() { + return this.$store.getters['localUsers/accountRoles']; } }, watch: { |