summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkirankumarb07 <kirankumarb@ami.com>2023-03-21 16:49:02 +0300
committerKiran Kumar Ballapalli <kirankumarb@ami.com>2023-03-28 06:50:13 +0300
commit6ad19aacef0a960e4c4777946145d1409677dfc0 (patch)
tree4a26f97f2f218ce310b67fa96b822804519625e2
parentaeb19816e67f6d3ffb1b37c95d813a25b8be1d7b (diff)
downloadwebui-vue-6ad19aacef0a960e4c4777946145d1409677dfc0.tar.xz
Fix User Management Page issues title and Policy
This patchset will fix the following issues in the user management page 1. "lockoutThreshold" and "lockoutDuration" values are not shown in the account policy model when we navigate to any other page and come back to the user management page account policy model. Fix - The "lockoutThreshold" and "lockoutDuration" values are monitored and updated in the model window by using the watch. When navigated from another page, the watch is not updating the values, so the default values are displayed. Initialized the value with an empty object, so the watch will get triggered and update the fields with proper values. 2. The User Management Page title is not translated properly. The router names are used to map each page's language objects. For the user management page, the router name and the object value in the locale file are different. Due to that, the title did not get translated properly. Fix - Changed the user management page title to match the locale file's language object key value. Change-Id: I1582c9d528633465c65f5d78e31d3dc740252cb0 Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
-rw-r--r--src/router/routes.js2
-rw-r--r--src/views/SecurityAndAccess/UserManagement/UserManagement.vue4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/router/routes.js b/src/router/routes.js
index 1404da5e..4cf8d72d 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -160,7 +160,7 @@ const routes = [
},
{
path: '/security-and-access/user-management',
- name: 'local-users',
+ name: 'user-management',
component: UserManagement,
meta: {
title: i18n.t('appPageTitle.userManagement'),
diff --git a/src/views/SecurityAndAccess/UserManagement/UserManagement.vue b/src/views/SecurityAndAccess/UserManagement/UserManagement.vue
index b17be86e..0af271d7 100644
--- a/src/views/SecurityAndAccess/UserManagement/UserManagement.vue
+++ b/src/views/SecurityAndAccess/UserManagement/UserManagement.vue
@@ -102,7 +102,7 @@
</b-col>
</b-row>
<!-- Modals -->
- <modal-settings :settings="settings" @ok="saveAccountSettings" />
+ <modal-settings :settings="setting" @ok="saveAccountSettings" />
<modal-user
:user="activeUser"
:password-requirements="passwordRequirements"
@@ -158,6 +158,7 @@ export default {
return {
isBusy: true,
activeUser: null,
+ setting: {},
fields: [
{
key: 'checkbox',
@@ -282,6 +283,7 @@ export default {
});
},
initModalSettings() {
+ this.setting = this.settings;
this.$bvModal.show('modal-settings');
},
saveUser({ isNewUser, userData }) {