X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fproject_management%2Fsrc%2Fdashboard%2Fdashboard.jsx;h=f1fca657c4f9ac0bdc58a6ae949577438caf2369;hb=bb11c05914869028a39a685cf5bf2ec347f299a1;hp=8cda8026990b62fc55051719af3a8d0154984952;hpb=2279bd2b93eb7cf73526ee3cc1ae299f4bcfe48e;p=osm%2FUI.git diff --git a/skyquake/plugins/project_management/src/dashboard/dashboard.jsx b/skyquake/plugins/project_management/src/dashboard/dashboard.jsx index 8cda80269..f1fca657c 100644 --- a/skyquake/plugins/project_management/src/dashboard/dashboard.jsx +++ b/skyquake/plugins/project_management/src/dashboard/dashboard.jsx @@ -7,6 +7,7 @@ import ReactDOM from 'react-dom'; import AppHeader from 'widgets/header/header.jsx'; import ProjectManagementStore from './projectMgmtStore.js'; import SkyquakeComponent from 'widgets/skyquake_container/skyquakeComponent.jsx'; +import SkyquakeRBAC from 'widgets/skyquake_rbac/skyquakeRBAC.jsx'; import 'style/layout.scss'; import './projectMgmt.scss'; import {Panel, PanelWrapper} from 'widgets/panel/panel'; @@ -20,6 +21,10 @@ 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 PROJECT_ROLES = ROLES.PROJECT; +const PLATFORM = ROLES.PLATFORM; + class ProjectManagementDashboard extends React.Component { constructor(props) { super(props); @@ -103,7 +108,6 @@ class ProjectManagementDashboard extends React.Component { 'name': projectName, 'description': self.state.description, 'project-config' : { - 'name-ref': projectName, 'user': cleanUsers } }); @@ -121,7 +125,6 @@ class ProjectManagementDashboard extends React.Component { 'name': projectName, 'description': self.state.description, 'project-config' : { - 'name-ref': projectName, 'user': cleanUsers } })); @@ -214,9 +217,9 @@ class ProjectManagementDashboard extends React.Component { let state = this.state; let passwordSectionHTML = null; let formButtonsHTML = ( - -