X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fuser_management%2Fsrc%2Fdashboard%2Fdashboard.jsx;h=30ee04d0fcfaf1204314a853081d3521aae1c054;hp=0377a54b180926c59efa8a6517b4ffee398c4687;hb=bc747990c2dc8bbdb262ad81da7b6741a4000677;hpb=06dd5508070d4acc43bdcacca20cee5953d5a5a4 diff --git a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx index 0377a54b1..30ee04d0f 100644 --- a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx +++ b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx @@ -114,12 +114,12 @@ class UserManagementDashboard extends React.Component { disabled: [null] } } - this.Store.createUser({ - 'user-name': this.state['user-name'], - 'user-domain': this.state['user-domain'], - 'password': this.state['new-password'] - // 'confirm-password': this.state['confirm-password'] - }); + this.Store.createUser(_.merge({ + 'user-name': this.state['user-name'], + 'user-domain': this.state['user-domain'], + 'password': this.state['new-password'] + // 'confirm-password': this.state['confirm-password'] + }, isDisabled)); } } updateUser = (e) => { @@ -298,10 +298,12 @@ class UserManagementDashboard extends React.Component { + options={[{label: "DISABLED", value: "TRUE"},{label: "ENABLED", value: "FALSE"}]} + readonly={state.isReadOnly} + readonlydisplay={this.state.disabled == "TRUE" ? "DISABLED" : "ENABLED"} + />