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=4432881abf0cae4eff1f29e7444f6c06a6fc8b76;hb=bc747990c2dc8bbdb262ad81da7b6741a4000677;hpb=6fc3e77438cd4e53c5d5f21512ee8ca260469ca8 diff --git a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx index 4432881ab..30ee04d0f 100644 --- a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx +++ b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx @@ -82,7 +82,7 @@ class UserManagementDashboard extends React.Component { cancelEditUser = () => { this.actions.editUser(true) } - osePanel = () => { + closePanel = () => { this.actions.handleCloseUserPanel(); } // updateUser = (e) => { @@ -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"} + />