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=abf00ef39ee93f2a7ff05a4432eb3a50a88a487e;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 = (
-
-
-
+
+
+
);
let projectUsers = [];
self.state.projectUsers.map((u) => {
@@ -282,9 +285,11 @@ class ProjectManagementDashboard extends React.Component {
)
})}
-
-
-
+
+
+
+
+
@@ -368,8 +373,9 @@ class ProjectManagementDashboard extends React.Component {
+
{formButtonsHTML}
-
+