Browse Source

SONAR-16316 Regulatory report api integration fixes

tags/9.5.0.56709
Revanshu Paliwal 2 years ago
parent
commit
91726b77a1

+ 2
- 2
server/sonar-web/src/main/js/apps/projectRegulatoryReport/RegulatoryReport.tsx View File

@@ -45,9 +45,9 @@ function RegulatoryReport(props: Props) {
<div className="big-spacer-top">
<a
className={classNames('button button-primary', { disabled: downloadStarted })}
download={[component.name, branchName, 'PDF Report.pdf'].filter(s => !!s).join(' - ')}
download={[component.name, branchName, 'PDF Report'].filter(s => !!s).join(' - ')}
onClick={() => setDownloadStarted(true)}
href={downloadStarted ? '#' : getRegulatoryReportUrl(component.key, branchName)}
href={getRegulatoryReportUrl(component.key, branchName)}
target="_blank"
rel="noopener noreferrer">
{translate('download_verb')}

Loading…
Cancel
Save