commit | 791622bc08a510e4c8f059155e71f006476c5f59 | [log] [tgz] |
---|---|---|
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | Fri Apr 17 13:55:16 2020 -0700 |
committer | Derick Montague <derick.montague@ibm.com> | Wed Apr 22 13:49:46 2020 +0000 |
tree | 5b9cc674d971ae373ee77184a75460ede10307da | |
parent | 038a9da1ae021f3aef91317c50f8baf3d7fef5bb [diff] |
Fix local user edit bug When clicking the edit action in the local user table multiple times in a row, the form values do not populate. Setting the activeUser value to null whenever the modal is hidden will fix this issue–the value change will trigger the watch method in the modal and set form values. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I0b86b7e8b0454a69adf10fdd534a85a28d57b2a9
diff --git a/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue b/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue index b9df58f..8c7cc7f 100644 --- a/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue +++ b/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue
@@ -81,6 +81,7 @@ :user="activeUser" :password-requirements="passwordRequirements" @ok="saveUser" + @hidden="activeUser = null" /> </b-container> </template>
diff --git a/src/views/AccessControl/LocalUserManagement/ModalUser.vue b/src/views/AccessControl/LocalUserManagement/ModalUser.vue index f4a66e7..baf49e9 100644 --- a/src/views/AccessControl/LocalUserManagement/ModalUser.vue +++ b/src/views/AccessControl/LocalUserManagement/ModalUser.vue
@@ -343,6 +343,7 @@ this.form.password = ''; this.form.passwordConfirmation = ''; this.$v.$reset(); + this.$emit('hidden'); }, requirePassword() { if (this.newUser) return true;