Skip to content

Commit

Permalink
ui: Display validator name
Browse files Browse the repository at this point in the history
  • Loading branch information
georgimld committed Nov 16, 2020
1 parent e747740 commit 378bcad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/pages/Workflows/SubProjectDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ const SubProjectDetails = ({
const mappedStatus = statusMapping(status);
const statusIcon = statusIconMapping[status];
const date = unixTsToString(created);
const validator = users.find(user => user.id === subprojectValidator);

const closingOfSubProjectAllowed = subProjectCanBeClosed(status === "closed", canCloseSubproject, workflowItems);
return (
Expand Down Expand Up @@ -248,14 +249,14 @@ const SubProjectDetails = ({
secondary={strings.common.assignee}
/>
</ListItem>
{!_isEmpty(subprojectValidator) ? (
{!_isEmpty(validator) ? (
<ListItem>
<ListItemAvatar>
<Avatar>
<PersonIcon />
</Avatar>
</ListItemAvatar>
<ListItemText primary={subprojectValidator} secondary={strings.subproject.subproject_validator} />
<ListItemText primary={validator.displayName} secondary={strings.subproject.subproject_validator} />
</ListItem>
) : null}
</List>
Expand Down

0 comments on commit 378bcad

Please sign in to comment.