]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16316 Regulatory report api integration fixes
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>
Mon, 9 May 2022 10:18:20 +0000 (12:18 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 25 May 2022 20:03:16 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/projectRegulatoryReport/RegulatoryReport.tsx

index f8cda88b0ccbab02473908d32c69c4d42ee6b05a..55d3c489b6015117bae1d382bb329a50807dcdf7 100644 (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')}