diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/urls.js')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/urls.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/urls.js b/server/sonar-web/src/main/js/helpers/urls.js index 645cf9adb8e..cf1a0fe57a4 100644 --- a/server/sonar-web/src/main/js/helpers/urls.js +++ b/server/sonar-web/src/main/js/helpers/urls.js @@ -83,3 +83,21 @@ export function getComponentFixedDashboardUrl (componentKey, dashboardKey) { export function getComponentDashboardManagementUrl (componentKey) { return window.baseUrl + '/dashboards?resource=' + encodeURIComponent(componentKey); } + +/** + * Generate URL for a quality profile + * @param {string} key + * @returns {string} + */ +export function getQualityProfileUrl (key) { + return window.baseUrl + '/profiles/show?key=' + encodeURIComponent(key); +} + +/** + * Generate URL for a quality gate + * @param {string} key + * @returns {string} + */ +export function getQualityGateUrl (key) { + return window.baseUrl + '/quality_gates/show/' + encodeURIComponent(key); +} |