From: Laurence Maultsby Date: Wed, 8 Mar 2017 15:23:50 +0000 (-0500) Subject: User Management: user selection fix X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=5e882a3f1564353f80dea0836af19368a89927e9;p=osm%2FUI.git User Management: user selection fix Signed-off-by: Laurence Maultsby --- 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); }