Skip to content

Commit

Permalink
add env toggle to review table csv (#2076)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwarz2030 authored Sep 1, 2023
1 parent a2c7b41 commit 49768bd
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/pages/Review/TasksReview/TasksReviewTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,16 @@ export class TaskReviewTable extends Component {
</li>
{(reviewTasksType === ReviewTasksType.allReviewedTasks || reviewTasksType === ReviewTasksType.toBeReviewed) &&
<li onClick={dropdown.toggleDropdownVisible}>
<a target="_blank"
rel="noopener noreferrer"
href={buildLinkToReviewTableExportCSV(this.props.reviewCriteria, this.props.addedColumns)}
className="mr-flex mr-items-center">
<SvgSymbol sym='download-icon' viewBox='0 0 20 20' className="mr-w-4 mr-h-4 mr-fill-current mr-mr-2" />
<FormattedMessage {...messages.exportReviewTableCSVLabel} />
</a>
{
process.env.REACT_APP_REVIEW_TABLE_EXPORT_CSV ?
<a target="_blank"
rel="noopener noreferrer"
href={buildLinkToReviewTableExportCSV(this.props.reviewCriteria, this.props.addedColumns)}
className="mr-flex mr-items-center">
<SvgSymbol sym='download-icon' viewBox='0 0 20 20' className="mr-w-4 mr-h-4 mr-fill-current mr-mr-2" />
<FormattedMessage {...messages.exportReviewTableCSVLabel} />
</a> : null
}
<a target="_blank"
rel="noopener noreferrer"
href={buildLinkToMapperExportCSV(this.props.reviewCriteria)}
Expand Down

0 comments on commit 49768bd

Please sign in to comment.