diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-03-11 16:49:41 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-03-11 16:49:41 +0100 |
commit | c91eba9d97ec31e2d8ead93a6dd8aa07cf0f3c6b (patch) | |
tree | c767f0a5fe9fa2f54e030f3a87bd4021c01b1f5d | |
parent | 9a3f53e204366b276890355caf8fd0f9c5aeac4e (diff) | |
download | sonarqube-c91eba9d97ec31e2d8ead93a6dd8aa07cf0f3c6b.tar.gz sonarqube-c91eba9d97ec31e2d8ead93a6dd8aa07cf0f3c6b.zip |
fix display of leak values for RATING and LEVEL measures
-rw-r--r-- | server/sonar-web/src/main/js/apps/component-measures/components/MeasureDetailsHeader.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 ( <header className="measure-details-header"> <h2 className="measure-details-metric"> @@ -63,7 +65,7 @@ export default function MeasureDetailsHeader ( </div> )} - {measure.leak != null && ( + {displayLeak && ( <div className="measure-details-value-leak" title={leakPeriodTooltip} |