From e8b5e73cb3b410744daf1c096ae2697da171f9bb Mon Sep 17 00:00:00 2001 From: Laurence Maultsby Date: Thu, 16 Mar 2017 15:40:03 -0400 Subject: [PATCH] Project Management styling and usermanagement workflow to table Signed-off-by: Laurence Maultsby --- .../src/dashboard/dashboard.jsx | 183 ++++++++++++------ .../src/dashboard/projectMgmt.scss | 19 +- .../src/dashboard/projectMgmtActions.js | 1 + .../src/dashboard/projectMgmtStore.js | 24 ++- 4 files changed, 164 insertions(+), 63 deletions(-) diff --git a/skyquake/plugins/project_management/src/dashboard/dashboard.jsx b/skyquake/plugins/project_management/src/dashboard/dashboard.jsx index 2b252271e..60e06df4a 100644 --- a/skyquake/plugins/project_management/src/dashboard/dashboard.jsx +++ b/skyquake/plugins/project_management/src/dashboard/dashboard.jsx @@ -172,6 +172,13 @@ class ProjectManagementDashboard extends React.Component { value: JSON.parse(e.target.value) }) } + toggleUserRoleInProject = (userIndex, roleIndex, e) => { + this.actions.handleToggleUserRoleInProject({ + userIndex, + roleIndex, + checked: JSON.parse(e.currentTarget.checked) + }) + } removeRoleFromUserInProject = (userIndex, roleIndex, e) => { this.actions.handleRemoveRoleFromUserInProject({ userIndex, @@ -206,6 +213,11 @@ class ProjectManagementDashboard extends React.Component {