X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fuser_management%2Fsrc%2Fdashboard%2FuserMgmtStore.js;h=b68c72cd231fa4bc27981718ceb1d127068a608e;hp=9654b4a12255c32ddc9811d38b60d29249428f50;hb=d5f18198d2750fb2a4613846a9885f7b74b6ca93;hpb=bc747990c2dc8bbdb262ad81da7b6741a4000677 diff --git a/skyquake/plugins/user_management/src/dashboard/userMgmtStore.js b/skyquake/plugins/user_management/src/dashboard/userMgmtStore.js index 9654b4a12..b68c72cd2 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({}) } /** @@ -84,6 +86,7 @@ export default class UserManagementStore { } editUser(isEdit) { this.setState({ + isEditUser: !isEdit, isReadOnly: isEdit }) }