aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-09-16 14:03:12 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-09-16 16:27:08 +0200
commit09e33795783fcc70772ba3928f1ec697cc2467ab (patch)
treebabd6f9fe3492695251142808c012ecf1cd6d42e
parenta80e6c126c0a99b7cb13bf2ce6672c936c69b172 (diff)
downloadsonarqube-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.js2
-rw-r--r--server/sonar-web/src/main/js/apps/overview/main/Duplications.js2
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/>