X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=skyquake%2Fplugins%2Fuser_management%2Fsrc%2Fdashboard%2FuserMgmtStore.js;h=19742475dd963dc9b4431a6bb1bc4a6123e09bc5;hb=0d60d777e67c32b42692dc8e952827671ff3b8d1;hp=9654b4a12255c32ddc9811d38b60d29249428f50;hpb=bc747990c2dc8bbdb262ad81da7b6741a4000677;p=osm%2FUI.git diff --git a/skyquake/plugins/user_management/src/dashboard/userMgmtStore.js b/skyquake/plugins/user_management/src/dashboard/userMgmtStore.js index 9654b4a12..19742475d 100644 --- a/skyquake/plugins/user_management/src/dashboard/userMgmtStore.js +++ b/skyquake/plugins/user_management/src/dashboard/userMgmtStore.js @@ -29,7 +29,9 @@ export default class UserManagementStore { this.isReadOnly = true; this.userOpen = false; this.hideColumns = false; + //There is probably a better way of handling the view/edit/readonly matrix conditions for some of these inputs. Should definitely revist this.isEdit = false; + this.isEditUser = false; // this.exportPublicMethods({}) } /** @@ -72,6 +74,7 @@ export default class UserManagementStore { platformRoles: user.platformRoles || this.platformRoles, disabled: user.hasOwnProperty('disabled').toString().toUpperCase(), projectRoles: user.projectRoles || this.projectRoles, + projects: user.projects, currentPassword: user.password } let state = _.merge({ @@ -84,6 +87,7 @@ export default class UserManagementStore { } editUser(isEdit) { this.setState({ + isEditUser: !isEdit, isReadOnly: isEdit }) }