X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fuser_management%2Fsrc%2Fdashboard%2Fdashboard.jsx;fp=skyquake%2Fplugins%2Fuser_management%2Fsrc%2Fdashboard%2Fdashboard.jsx;h=09e5c6b396bc37854ec177a58a7efcffd9718288;hb=bb11c05914869028a39a685cf5bf2ec347f299a1;hp=28471b782097e898a575c5356f9e1009d57315ac;hpb=cd4119f7fd2ee97de0b2b5307c6de11e8e600acd;p=osm%2FUI.git diff --git a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx index 28471b782..09e5c6b39 100644 --- a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx +++ b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx @@ -10,7 +10,7 @@ import SkyquakeComponent from 'widgets/skyquake_container/skyquakeComponent.jsx' import 'style/layout.scss'; import './userMgmt.scss'; import {Panel, PanelWrapper} from 'widgets/panel/panel'; - +import SkyquakeRBAC from 'widgets/skyquake_rbac/skyquakeRBAC.jsx'; import TextInput from 'widgets/form_controls/textInput.jsx'; import Input from 'widgets/form_controls/input.jsx'; @@ -20,13 +20,15 @@ import 'widgets/form_controls/formControls.scss'; import imgAdd from '../../node_modules/open-iconic/svg/plus.svg' import imgRemove from '../../node_modules/open-iconic/svg/trash.svg'; +import ROLES from 'utils/roleConstants.js'; +const PLATFORM = ROLES.PLATFORM; + class UserManagementDashboard extends React.Component { constructor(props) { super(props); this.Store = this.props.flux.stores.hasOwnProperty('UserManagementStore') ? this.props.flux.stores.UserManagementStore : this.props.flux.createStore(UserManagementStore); this.state = this.Store.getState(); this.actions = this.state.actions; - } componentDidUpdate() { let self = this; @@ -212,10 +214,11 @@ class UserManagementDashboard extends React.Component { ) ) } - html = ( - + + + { this.UserList = div}} className={`column userList expanded ${this.state.userOpen ? 'collapsed ' : ' '} ${this.state.hideColumns ? 'hideColumns ' : ' '}`}> @@ -250,9 +253,11 @@ class UserManagementDashboard extends React.Component { ) })} - -