From 5e882a3f1564353f80dea0836af19368a89927e9 Mon Sep 17 00:00:00 2001 From: Laurence Maultsby Date: Wed, 8 Mar 2017 10:23:50 -0500 Subject: [PATCH] User Management: user selection fix Signed-off-by: Laurence Maultsby --- .../plugins/user-management/src/dashboard/userMgmtStore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skyquake/plugins/user-management/src/dashboard/userMgmtStore.js b/skyquake/plugins/user-management/src/dashboard/userMgmtStore.js index 407d9d2d4..419a40a84 100644 --- a/skyquake/plugins/user-management/src/dashboard/userMgmtStore.js +++ b/skyquake/plugins/user-management/src/dashboard/userMgmtStore.js @@ -149,7 +149,7 @@ export default class UserManagementStore { } } handleAddUser() { - this.setState(_.merge( this.resetUser() ,{ isEdit: false, userOpen: true })) + this.setState(_.merge( this.resetUser() ,{ isEdit: false, userOpen: true, activeIndex: null })) } handleCreateUser() { @@ -190,7 +190,7 @@ export default class UserManagementStore { disabled: this.disabled, projectRoles: this.projectRoles }); - let newState = {users, isEdit: true}; + let newState = {users, isEdit: true, activeIndex: users.length - 1}; _.merge(newState, this.resetPassword()) this.setState(newState); } -- 2.25.1