projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow upload/update through session manager
[osm/UI.git]
/
skyquake
/
plugins
/
project_management
/
src
/
dashboard
/
dashboard.jsx
diff --git
a/skyquake/plugins/project_management/src/dashboard/dashboard.jsx
b/skyquake/plugins/project_management/src/dashboard/dashboard.jsx
index
8ddc365
..
66c3f48
100644
(file)
--- 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) {
});
}
cleanUsers(projectUsers, projectName) {
+ let self = this;
let cleanUsers = [];
//Remove null values from role
projectUsers.map((u) => {
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);
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;
}
});
return cleanUsers;
}
@@
-390,7
+393,8
@@
class ProjectManagementDashboard extends React.Component {
}
// onClick={this.Store.update.bind(null, Account)}
ProjectManagementDashboard.contextTypes = {
}
// onClick={this.Store.update.bind(null, Account)}
ProjectManagementDashboard.contextTypes = {
- router: React.PropTypes.object
+ router: React.PropTypes.object,
+ userProfile: React.PropTypes.object
};
ProjectManagementDashboard.defaultProps = {
};
ProjectManagementDashboard.defaultProps = {