X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=inline;f=skyquake%2Fplugins%2Fproject_management%2Fsrc%2Fdashboard%2FprojectMgmtStore.js;h=71c10a272a9b3e24a15c52adbcff89cf14453273;hb=119e39d96483d5cec756be95cc0cb735fb6f9a74;hp=ec3a099ba3556f50a317c8acd432678aaaf0d0fe;hpb=bb11c05914869028a39a685cf5bf2ec347f299a1;p=osm%2FUI.git diff --git a/skyquake/plugins/project_management/src/dashboard/projectMgmtStore.js b/skyquake/plugins/project_management/src/dashboard/projectMgmtStore.js index ec3a099ba..71c10a272 100644 --- a/skyquake/plugins/project_management/src/dashboard/projectMgmtStore.js +++ b/skyquake/plugins/project_management/src/dashboard/projectMgmtStore.js @@ -3,6 +3,7 @@ */ import ProjectManagementActions from './projectMgmtActions.js'; import ProjectManagementSource from './projectMgmtSource.js'; +import ROLES from 'utils/roleConstants.js'; import _ from 'lodash'; export default class ProjectManagementStore { constructor() { @@ -15,8 +16,10 @@ export default class ProjectManagementStore { this.projectUsers = []; this.selectedUser = null; this.selectedRole = null; - this.roles = ['rw-project:project-admin', 'rw-project:project-oper', 'rw-project:project-create' - ]; + this.roles = Object.keys(ROLES.PROJECT).map((p) => { + return ROLES.PROJECT[p]; + }) + // this.roles = ['rw-project:project-admin', 'rw-project:project-oper', 'rw-project:project-create']; this.users = []; this.activeIndex = null; this.isReadOnly = true;