aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview/helpers
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-11-09 11:05:28 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-11-09 11:05:28 +0100
commitbacbaa6550cb7f31e52414ceebb6ac918d1b6dde (patch)
tree83785ede092e83633e27afaba5d507349394e3c6 /server/sonar-web/src/main/js/apps/overview/helpers
parent8ea721e211a464b0c237cbcff77b9b86d9d174c6 (diff)
downloadsonarqube-bacbaa6550cb7f31e52414ceebb6ac918d1b6dde.tar.gz
sonarqube-bacbaa6550cb7f31e52414ceebb6ac918d1b6dde.zip
SONAR-6331 fix label for previous analysis period
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/helpers')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/helpers/period-label.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/helpers/period-label.js b/server/sonar-web/src/main/js/apps/overview/helpers/period-label.js
index 07cfcd43b9f..5b859894cd8 100644
--- a/server/sonar-web/src/main/js/apps/overview/helpers/period-label.js
+++ b/server/sonar-web/src/main/js/apps/overview/helpers/period-label.js
@@ -6,6 +6,9 @@ export let getPeriodLabel = (periods, periodIndex) => {
if (!period) {
return null;
}
+ if (period.mode === 'previous_version' && !period.modeParam) {
+ return window.t('overview.period.previous_version_only_date');
+ }
return window.tp(`overview.period.${period.mode}`, period.modeParam);
};