From 4b0f37fe3680359d0caa6cdf90580e700018769c Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 18 May 2016 16:37:43 +0200 Subject: [PATCH] fix domain headers on the overview page --- server/sonar-web/src/main/js/apps/overview/main/Size.js | 2 +- server/sonar-web/src/main/js/apps/overview/main/enhance.js | 4 ++-- sonar-core/src/main/resources/org/sonar/l10n/core.properties | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/overview/main/Size.js b/server/sonar-web/src/main/js/apps/overview/main/Size.js index e8f5f1e433c..8329f8e7a6a 100644 --- a/server/sonar-web/src/main/js/apps/overview/main/Size.js +++ b/server/sonar-web/src/main/js/apps/overview/main/Size.js @@ -27,7 +27,7 @@ class Size extends React.Component { renderHeader () { return this.props.renderHeader( 'Size', - translate('overview.domain.structure')); + translate('overview.domain.size')); } renderTimeline (range) { diff --git a/server/sonar-web/src/main/js/apps/overview/main/enhance.js b/server/sonar-web/src/main/js/apps/overview/main/enhance.js index 280a9dc799b..7bb01d0d98c 100644 --- a/server/sonar-web/src/main/js/apps/overview/main/enhance.js +++ b/server/sonar-web/src/main/js/apps/overview/main/enhance.js @@ -56,12 +56,12 @@ export default function enhance (ComposedComponent) { measure.value; } - renderHeader (label, domain) { + renderHeader (domain, label) { const { component } = this.props; const domainUrl = window.baseUrl + `/component_measures/domain/${domain}` + - `id=${encodeURIComponent(component.key)}`; + `?id=${encodeURIComponent(component.key)}`; return (
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index fa0a5a03e6e..398cf420a2a 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -1365,7 +1365,7 @@ overview.complexity_tooltip.file={0} files have complexity around {1} overview.complexity_tooltip.function={0} functions have complexity around {1} overview.coverage_on=Coverage on overview.domain.duplications=Duplications -overview.domain.structure=Structure +overview.domain.size=Size overview.gate.ERROR=Failed overview.gate.OK=Passed overview.gate.view.errors=The view failed the quality gate on the following conditions: {0}. -- 2.39.5