X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fproject_management%2Fsrc%2Fdashboard%2Fdashboard.jsx;h=c0adc7a4a5d5fc7d7649bc776fd03e2d04a687ba;hp=8ddc36567208e8ba5ae44ba2a06da105a3c7afaa;hb=08e8a038f222c66ce6f55760a766e90b87b3c50b;hpb=cefb13b7e32e68315f5f246ff27010315c830834 diff --git a/skyquake/plugins/project_management/src/dashboard/dashboard.jsx b/skyquake/plugins/project_management/src/dashboard/dashboard.jsx index 8ddc36567..c0adc7a4a 100644 --- a/skyquake/plugins/project_management/src/dashboard/dashboard.jsx +++ b/skyquake/plugins/project_management/src/dashboard/dashboard.jsx @@ -132,6 +132,7 @@ class ProjectManagementDashboard extends React.Component { }); } cleanUsers(projectUsers, projectName) { + let self = this; let cleanUsers = []; //Remove null values from role projectUsers.map((u) => { @@ -152,7 +153,9 @@ class ProjectManagementDashboard extends React.Component { u.role = cleanRoles; u["rw-project-mano:mano-role"] = u["rw-project-mano:mano-role"] || []; u["rw-project-mano:mano-role"] = u["rw-project-mano:mano-role"].concat(cleanManoRoles); - cleanUsers.push(u); + if (u['user-name'] != self.context.userProfile.userId) { + cleanUsers.push(u); + } }); return cleanUsers; } @@ -308,7 +311,7 @@ class ProjectManagementDashboard extends React.Component { - +
{!state.isReadOnly ? : null} @@ -390,7 +393,8 @@ class ProjectManagementDashboard extends React.Component { } // onClick={this.Store.update.bind(null, Account)} ProjectManagementDashboard.contextTypes = { - router: React.PropTypes.object + router: React.PropTypes.object, + userProfile: React.PropTypes.object }; ProjectManagementDashboard.defaultProps = {