Skip to content

Commit

Permalink
add link to biospecimens
Browse files Browse the repository at this point in the history
  • Loading branch information
zaliqarosli committed Jan 30, 2020
1 parent 6192142 commit 75ec084
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/candidate_list/jsx/candidateListIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,16 @@ class CandidateListIndex extends Component {
// If user has multiple subprojects, join array into string
return <td>{cell.join(', ')}</td>;
}
if (column === 'Biospecimen') {
switch (cell) {
case 'Y':
let url = this.props.baseURL + '/biobank?pscid=' + row['PSCID'];
return <td><a href={url}>Yes</a></td>;
case 'N':
return <td>No</td>;
}
}
if (column === 'Epidemio Questionnaire' ||
column === 'Biospecimen' ||
column === 'Neuropsychology Evaluation' ||
column === 'MoCA' ||
column === 'UPDRS - Part III') {
Expand Down

0 comments on commit 75ec084

Please # to comment.