- projectName
+ Project Name
Description
@@ -242,10 +273,10 @@ class ProjectManagementDashboard extends React.Component {
platformRoles.push(
{`${role}: ${u.platformRoles[role]}`}
)
}
return (
-
this[`project-ref-${k}`] = el} className={`tableRow tableRow--data ${((self.state.activeIndex == k) && self.state.projectOpen) ? 'tableRow--data-active' : ''}`} key={k}>
+
this[`project-ref-${k}`] = el} className={`tableRow tableRow--data ${((self.state.activeIndex == k) && self.state.projectOpen) ? 'tableRow--data-active' : ''}`} key={k}>
+ >
{u['name']}
@@ -257,9 +288,11 @@ class ProjectManagementDashboard extends React.Component {
)
})}
-
-
-
+
+
+
+
+
@@ -276,71 +309,54 @@ class ProjectManagementDashboard extends React.Component {
}
-
-
-
- User Name
-
-
- Role
-
-
- {
- state.projectUsers && state.projectUsers.map((u, k) => {
- return (
- this[`project-ref-${k}`] = el} className={`tableRow tableRow--data projectUsers`} key={k}>
-
{u['user-name']}
-
- {
- u.role && u.role.map((r, l) => {
- return (
-
-
-
- {!state.isReadOnly ?
-
-
- Remove Role
-
- : null
- }
+
-
-
- )
- })
- }
- {!state.isReadOnly ?
-
-
- Add Role
-
- {
- (!(u.role && u.role.length)) ?
-
+
+
+ {!state.isReadOnly ? | : null}
+ User Name |
+ {
+ state.roles.map((r,i) => {
+ return {r} |
+ })
+ }
+
+
+
+ {
+ state.projectUsers.map((u,i)=> {
+ let userRoles = []
+ u.role && u.role.map((r) => {
+ userRoles.push(r.role);
+ });
+ u["rw-project-mano:mano-role"] && u["rw-project-mano:mano-role"].map((r) => {
+ userRoles.push(r.role);
+ });
+ return (
+
+ {!state.isReadOnly ?
- Remove User
- : null
- }
-
- : null
- }
-
-
- )
- })
- }
+
+ | : null}
+
+ {u['user-name']}
+ |
+ {
+ state.roles.map((r,j) => {
+ return -1)} /> |
+ })
+ }
+
+ )
+ })
+ }
+
+
+
{
!state.isReadOnly ?
@@ -348,14 +364,10 @@ class ProjectManagementDashboard extends React.Component {
{
- return {
- label: u['user-name'],
- value: u
- }
- })}
+ options={availableUsers}
+ ref={(el) => self.selectUserList = el}
/>
Add User
@@ -368,8 +380,9 @@ class ProjectManagementDashboard extends React.Component {
+
{formButtonsHTML}
-
+
@@ -380,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 = {