Skip to content

Commit

Permalink
Merge pull request #705 from aphp/fix/1274_cohorts_status_management
Browse files Browse the repository at this point in the history
set cohort status to `Terminé` if request_job_status equals `finished`
  • Loading branch information
Mehdi-BOUYAHIA authored Feb 27, 2023
2 parents 5bd3dca + d5fdff3 commit 327db08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ const ResearchTable: React.FC<ResearchTableProps> = ({
</IconButton>
</TableCell>
<TableCell onClick={() => _onClickRow(row)} align="center">
{row.fhir_group_id ? (
{row.request_job_status === 'finished' ? (
<Chip label="Terminé" size="small" style={{ backgroundColor: '#28a745', color: 'white' }} />
) : row.request_job_status === 'pending' || row.request_job_status === 'started' ? (
<Chip label="En cours" size="small" style={{ backgroundColor: '#ffc107', color: 'black' }} />
Expand Down

0 comments on commit 327db08

Please sign in to comment.