diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2020-05-15 09:15:38 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-05-27 20:05:46 +0000 |
commit | fd91b02d132511a2436722d77161f746d01910cd (patch) | |
tree | 0a323109f558f3e41d3f05d3445ed0553c133f1e /server/sonar-web/src/main/js/apps/quality-profiles | |
parent | 5e9d00966008decae9ae040fa6701ee7e9da0545 (diff) | |
download | sonarqube-fd91b02d132511a2436722d77161f746d01910cd.tar.gz sonarqube-fd91b02d132511a2436722d77161f746d01910cd.zip |
Bump to sonar-ui-common@1.0.0
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.tsx | 3 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.tsx index 16b620cf03f..aa960dad0a9 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.tsx @@ -25,6 +25,7 @@ import ActionsDropdown, { import { translate } from 'sonar-ui-common/helpers/l10n'; import { getQualityProfileBackupUrl, setDefaultProfile } from '../../../api/quality-profiles'; import { Router, withRouter } from '../../../components/hoc/withRouter'; +import { getBaseUrl } from '../../../helpers/system'; import { getRulesUrl } from '../../../helpers/urls'; import { Profile } from '../types'; import { getProfileComparePath, getProfilePath, getProfilesPath } from '../utils'; @@ -137,7 +138,7 @@ export class ProfileActions extends React.PureComponent<Props, State> { const { profile } = this.props; const { actions = {} } = profile; - const backupUrl = `${(window as any).baseUrl}${getQualityProfileBackupUrl(profile)}`; + const backupUrl = `${getBaseUrl()}${getQualityProfileBackupUrl(profile)}`; const activateMoreUrl = getRulesUrl( { diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx index e324d1cdbf2..381a7c3ad70 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx @@ -20,6 +20,7 @@ import * as React from 'react'; import { translate } from 'sonar-ui-common/helpers/l10n'; import { getQualityProfileExporterUrl } from '../../../api/quality-profiles'; +import { getBaseUrl } from '../../../helpers/system'; import { Exporter, Profile } from '../types'; interface Props { @@ -31,7 +32,7 @@ interface Props { export default class ProfileExporters extends React.PureComponent<Props> { getExportUrl(exporter: Exporter) { const { profile } = this.props; - return `${(window as any).baseUrl}${getQualityProfileExporterUrl(exporter, profile)}`; + return `${getBaseUrl()}${getQualityProfileExporterUrl(exporter, profile)}`; } render() { |