]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8076 Improve message on leak period on coverage and duplications when no new...
authorStas Vilchik <vilchiks@gmail.com>
Fri, 16 Sep 2016 12:03:12 +0000 (14:03 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 16 Sep 2016 14:27:08 +0000 (16:27 +0200)
server/sonar-web/src/main/js/apps/overview/main/Coverage.js
server/sonar-web/src/main/js/apps/overview/main/Duplications.js

index a126b49fe511aa890b0d049db2bf2ce7c61cbdaa..1a6aaaee7d545ab6e9f281dc543422f76946e88d 100644 (file)
@@ -137,7 +137,7 @@ class Coverage extends React.Component {
         <span>—</span>
     );
 
-    const label = newLinesToCoverValue != null ? (
+    const label = (newLinesToCoverValue != null && newLinesToCoverValue > 0) ? (
         <div className="overview-domain-measure-label">
           {translate('overview.coverage_on')}
           <br/>
index 7c1c564bb656366a37621248bd95146de48467d0..9d65c911acea4b8887ef8ca61c08a7af50266845 100644 (file)
@@ -98,7 +98,7 @@ class Duplications extends React.Component {
         <span>—</span>
     );
 
-    const label = newLinesValue != null ? (
+    const label = (newLinesValue != null && newLinesValue > 0) ? (
         <div className="overview-domain-measure-label">
           {translate('overview.duplications_on')}
           <br/>