]> source.dussan.org Git - sonarqube.git/commitdiff
fix domain headers on the overview page
authorStas Vilchik <vilchiks@gmail.com>
Wed, 18 May 2016 14:37:43 +0000 (16:37 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 18 May 2016 14:37:51 +0000 (16:37 +0200)
server/sonar-web/src/main/js/apps/overview/main/Size.js
server/sonar-web/src/main/js/apps/overview/main/enhance.js
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index e8f5f1e433c5f83612c3695a21035bafbbde9159..8329f8e7a6a97fa5813fcca04bf6020e628f3073 100644 (file)
@@ -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) {
index 280a9dc799bce64acf259824bea8e6bf97fd5361..7bb01d0d98c014881e6600f237fef11e424ae817 100644 (file)
@@ -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 (
           <div className="overview-card-header">
index fa0a5a03e6ec190a23eb3fa338fcce3382847fd6..398cf420a2a8d3f19bce8a5917e1176bb3c05b50 100644 (file)
@@ -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}.