X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fuser_management%2Fsrc%2Fdashboard%2Fdashboard.jsx;h=28471b782097e898a575c5356f9e1009d57315ac;hb=b5f45345dc77c112f4970d010febb7bb5a4335bd;hp=601205059354bf998b4a67de130311e0f74060cd;hpb=0639632bc78cfc65b26624c20e6ce4cb81d8be8f;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 601205059..28471b782 100644 --- a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx +++ b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx @@ -18,7 +18,7 @@ import Button, {ButtonGroup} from 'widgets/button/sq-button.jsx'; import SelectOption from 'widgets/form_controls/selectOption.jsx'; 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 imgRemove from '../../node_modules/open-iconic/svg/trash.svg'; class UserManagementDashboard extends React.Component { constructor(props) { @@ -79,7 +79,7 @@ class UserManagementDashboard extends React.Component { cancelEditUser = () => { this.actions.editUser(true) } - closePanel = () => { + osePanel = () => { this.actions.handleCloseUserPanel(); } // updateUser = (e) => { @@ -214,84 +214,86 @@ class UserManagementDashboard extends React.Component { } html = ( - - { this.UserList = div}} className={`column userList expanded ${this.state.userOpen ? 'collapsed ' : ' '} ${this.state.hideColumns ? 'hideColumns ' : ' '}`}> - -
-
- Username -
-
- Domain + + + + { this.UserList = div}} className={`column userList expanded ${this.state.userOpen ? 'collapsed ' : ' '} ${this.state.hideColumns ? 'hideColumns ' : ' '}`}> + +
+
+ Username +
+
+ Domain +
-
- {state.users && state.users.map((u, k) => { - let platformRoles = []; - for(let role in u.platformRoles) { - platformRoles.push(
{`${role}: ${u.platformRoles[role]}`}
) - } - return ( -
this[`user-ref-${k}`] = el} className={`tableRow tableRow--data ${((self.state.activeIndex == k) && self.state.userOpen) ? 'tableRow--data-active' : ''}`} key={k}> -
{ + let platformRoles = []; + for(let role in u.platformRoles) { + platformRoles.push(
{`${role}: ${u.platformRoles[role]}`}
) + } + return ( +
this[`user-ref-${k}`] = el} className={`tableRow tableRow--data ${((self.state.activeIndex == k) && self.state.userOpen) ? 'tableRow--data-active' : ''}`} + key={k} onClick={self.viewUser.bind(null, u, k)}> - {u['user-name']} -
-
- {u['user-domain']} -
+
+ {u['user-name']} +
+
+ {u['user-domain']} +
-
- ) - })} - - -
+ ) + })} + + +