X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fproject_management%2Fsrc%2Fdashboard%2FprojectMgmtStore.js;h=b3e55ad6ce395d96efa5dac756af7036d5d505f6;hb=a70db5e18343f33d04c86455c52be80f56457e1a;hp=71c10a272a9b3e24a15c52adbcff89cf14453273;hpb=56e55f5efc98e32a1afb3d99d07e9e5b0847a258;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 71c10a272..b3e55ad6c 100644 --- a/skyquake/plugins/project_management/src/dashboard/projectMgmtStore.js +++ b/skyquake/plugins/project_management/src/dashboard/projectMgmtStore.js @@ -58,9 +58,11 @@ export default class ProjectManagementStore { projectRoles }); } - viewProject(data) { + viewProject() { + let data = arguments[0]; let project = data[0]; let projectIndex = data[1]; + let isReadOnly = data[2]; let ProjectData = { 'name': project['name'], @@ -71,14 +73,13 @@ export default class ProjectManagementStore { activeIndex: projectIndex, projectOpen: true, isEdit: true, - isReadOnly: true + isReadOnly: isReadOnly }, ProjectData); this.setState(state) } - editProject(isEdit) { - this.setState({ - isReadOnly: isEdit - }) + editProject(isReadOnly) { + this.viewProject([this.projects[this.activeIndex], this.activeIndex, isReadOnly]); + } handleCloseProjectPanel() { this.setState({