From: KIRAN KASHALKAR Date: Fri, 24 Mar 2017 20:57:34 +0000 (-0400) Subject: NOTICKET: Need to pass in project name-ref in project-config X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=8813877abfd93d803338f4afaf718c6ffa50ca44;p=osm%2FUI.git NOTICKET: Need to pass in project name-ref in project-config Signed-off-by: KIRAN KASHALKAR --- diff --git a/skyquake/plugins/project_management/src/dashboard/dashboard.jsx b/skyquake/plugins/project_management/src/dashboard/dashboard.jsx index 6b613cc07..71921a7ce 100644 --- a/skyquake/plugins/project_management/src/dashboard/dashboard.jsx +++ b/skyquake/plugins/project_management/src/dashboard/dashboard.jsx @@ -96,11 +96,13 @@ class ProjectManagementDashboard extends React.Component { e.stopPropagation(); let projectUsers = self.state.projectUsers; let cleanUsers = this.cleanUsers(projectUsers); + let projectName = self.state['name']; this.Store.createProject({ - 'name': self.state['name'], + 'name': projectName, 'description': self.state.description, 'project-config' : { + 'name-ref': projectName, 'user': cleanUsers } }); @@ -111,11 +113,13 @@ class ProjectManagementDashboard extends React.Component { e.stopPropagation(); let projectUsers = self.state.projectUsers; let cleanUsers = this.cleanUsers(projectUsers); + let projectName = self.state['name']; this.Store.updateProject(_.merge({ - 'name': self.state['name'], + 'name': projectName, 'description': self.state.description, 'project-config' : { + 'name-ref': projectName, 'user': cleanUsers } }));