aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-10-25 15:04:45 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-10-25 17:33:29 +0200
commit0aa52a10e3957c281e2cabb8ef42b70b490af12a (patch)
treea67b86adf8bcfa3606c59b9b68421f314d88cb09 /server/sonar-web/src/main/js/apps/issues
parent4507dcbe6143a6d12d5b2a56f960b580e38245a2 (diff)
downloadsonarqube-0aa52a10e3957c281e2cabb8ef42b70b490af12a.tar.gz
sonarqube-0aa52a10e3957c281e2cabb8ef42b70b490af12a.zip
better last bar tooltip in creation date facet
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js
index 2f4e5038b86..959840083e2 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js
@@ -175,8 +175,9 @@ export default class CreationDateFacet extends React.PureComponent {
formatMeasure(stats[start], 'SHORT_INT') +
'<br/>' +
formatDate(startDate, longFormatterOption);
- if (endDate && !isSameDay(endDate, startDate)) {
- tooltip += ' – ' + formatDate(endDate, longFormatterOption);
+ const tooltipEndDate = endDate || Date.now();
+ if (!isSameDay(tooltipEndDate, startDate)) {
+ tooltip += ' – ' + formatDate(tooltipEndDate, longFormatterOption);
}
return {