Skip to content

Commit

Permalink
Merge pull request #295 from MoTrPAC/291_JZ_Multiomics_Report_Download
Browse files Browse the repository at this point in the history
Connects to #291. Button UI in modal to download analysis reports.
  • Loading branch information
jimmyzhen authored Mar 18, 2024
2 parents dc3d2d5 + cf6225a commit 52a2120
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/MultiOmicsWorkingGroups/htmlReportModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,19 @@ function HtmlReportModal({ selectedReport, selectedReportLabel }) {
<div className="modal-dialog modal-xl">
<div className="modal-content" style={{ height: '90vh' }}>
<div className="modal-header">
<h5 className="modal-title" id="html-report-modal-label">
{selectedReportLabel}
</h5>
<div className="d-flex align-items-center">
<h5 className="modal-title" id="html-report-modal-label">
{selectedReportLabel}
</h5>
<a
role="button"
className="btn btn-primary btn-report-download ml-3"
href={`/static-assets/dawg-pac/${selectedReport}`}
download
>
<span>Download Report</span>
</a>
</div>
<button
type="button"
className="close"
Expand Down

0 comments on commit 52a2120

Please sign in to comment.