aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>2022-05-09 12:18:20 +0200
committersonartech <sonartech@sonarsource.com>2022-05-25 20:03:16 +0000
commit91726b77a19abb47414eea0969d3beeaf97fbd3d (patch)
tree3139f193b1b6e9941b1327b5b4f9d0d5604bf5bf
parent89448847c08173c261453fc4aa3cf7fca23b6c8f (diff)
downloadsonarqube-91726b77a19abb47414eea0969d3beeaf97fbd3d.tar.gz
sonarqube-91726b77a19abb47414eea0969d3beeaf97fbd3d.zip
SONAR-16316 Regulatory report api integration fixes
-rw-r--r--server/sonar-web/src/main/js/apps/projectRegulatoryReport/RegulatoryReport.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectRegulatoryReport/RegulatoryReport.tsx b/server/sonar-web/src/main/js/apps/projectRegulatoryReport/RegulatoryReport.tsx
index f8cda88b0cc..55d3c489b60 100644
--- a/server/sonar-web/src/main/js/apps/projectRegulatoryReport/RegulatoryReport.tsx
+++ b/server/sonar-web/src/main/js/apps/projectRegulatoryReport/RegulatoryReport.tsx
@@ -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')}