From c91eba9d97ec31e2d8ead93a6dd8aa07cf0f3c6b Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 11 Mar 2016 16:49:41 +0100 Subject: [PATCH] fix display of leak values for RATING and LEVEL measures --- .../component-measures/components/MeasureDetailsHeader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/MeasureDetailsHeader.js b/server/sonar-web/src/main/js/apps/component-measures/components/MeasureDetailsHeader.js index 12a2a24a595..59a9a3c9eee 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/MeasureDetailsHeader.js +++ b/server/sonar-web/src/main/js/apps/component-measures/components/MeasureDetailsHeader.js @@ -39,6 +39,8 @@ export default function MeasureDetailsHeader ( ) { const leakPeriodTooltip = translateWithParameters('overview.leak_period_x', leakPeriodLabel); + const displayLeak = measure.leak != null && metric.type !== 'RATING' && metric.type !== 'LEVEL'; + return (

@@ -63,7 +65,7 @@ export default function MeasureDetailsHeader ( )} - {measure.leak != null && ( + {displayLeak && (