diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-03-03 22:55:52 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-03-05 21:06:04 +0300 |
commit | fb78d1913312e5665588d3908249e8475f914040 (patch) | |
tree | 0f4946cbd2853a8b83e0ab65bcad6a17d8f5f463 /src | |
parent | 13c087b4720bf39684bec8c5061bfbeb13302311 (diff) | |
download | webui-vue-fb78d1913312e5665588d3908249e8475f914040.tar.xz |
Refactor user management component
Removing dedicated methods to get user accounts and settings
since component methods aren't reused and subsequent requests
after initial load are handled on Store level.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I18bc18eea0e2e47af01afb518ccd7f0e99c414ab
Diffstat (limited to 'src')
-rw-r--r-- | src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue b/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue index 23b06dd7..c08b39b9 100644 --- a/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue +++ b/src/views/AccessControl/LocalUserManagement/LocalUserManagement.vue @@ -198,16 +198,10 @@ export default { } }, created() { - this.getUsers(); - this.getAccountSettings(); + this.$store.dispatch('localUsers/getUsers'); + this.$store.dispatch('localUsers/getAccountSettings'); }, methods: { - getUsers() { - this.$store.dispatch('localUsers/getUsers'); - }, - getAccountSettings() { - this.$store.dispatch('localUsers/getAccountSettings'); - }, initModalUser(user) { this.activeUser = user; this.$bvModal.show('modal-user'); |