Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
}
}
handleAddUser() {
- this.setState(_.merge( this.resetUser() ,{ isEdit: false, userOpen: true }))
+ this.setState(_.merge( this.resetUser() ,{ isEdit: false, userOpen: true, activeIndex: null }))
}
handleCreateUser() {
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);
}