diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-09-16 14:03:12 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-09-16 16:27:08 +0200 |
commit | 09e33795783fcc70772ba3928f1ec697cc2467ab (patch) | |
tree | babd6f9fe3492695251142808c012ecf1cd6d42e | |
parent | a80e6c126c0a99b7cb13bf2ce6672c936c69b172 (diff) | |
download | sonarqube-09e33795783fcc70772ba3928f1ec697cc2467ab.tar.gz sonarqube-09e33795783fcc70772ba3928f1ec697cc2467ab.zip |
SONAR-8076 Improve message on leak period on coverage and duplications when no new data
-rw-r--r-- | server/sonar-web/src/main/js/apps/overview/main/Coverage.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/overview/main/Duplications.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/main/Coverage.js b/server/sonar-web/src/main/js/apps/overview/main/Coverage.js index a126b49fe51..1a6aaaee7d5 100644 --- a/server/sonar-web/src/main/js/apps/overview/main/Coverage.js +++ b/server/sonar-web/src/main/js/apps/overview/main/Coverage.js @@ -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/> diff --git a/server/sonar-web/src/main/js/apps/overview/main/Duplications.js b/server/sonar-web/src/main/js/apps/overview/main/Duplications.js index 7c1c564bb65..9d65c911ace 100644 --- a/server/sonar-web/src/main/js/apps/overview/main/Duplications.js +++ b/server/sonar-web/src/main/js/apps/overview/main/Duplications.js @@ -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/> |