aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/coffee
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-server/src/main/coffee')
-rw-r--r--sonar-server/src/main/coffee/component-viewer/main.coffee2
-rw-r--r--sonar-server/src/main/coffee/component-viewer/models/period.coffee1
2 files changed, 1 insertions, 2 deletions
diff --git a/sonar-server/src/main/coffee/component-viewer/main.coffee b/sonar-server/src/main/coffee/component-viewer/main.coffee
index a8db19334cb..6a7ea195a0c 100644
--- a/sonar-server/src/main/coffee/component-viewer/main.coffee
+++ b/sonar-server/src/main/coffee/component-viewer/main.coffee
@@ -160,7 +160,7 @@ define [
if full
# Periods
- @periods.reset [{}]
+ @periods.reset [{label: t('none')}]
data.periods.forEach (p) =>
d = new Date p[2]
d.setHours 0, 0, 0, 0
diff --git a/sonar-server/src/main/coffee/component-viewer/models/period.coffee b/sonar-server/src/main/coffee/component-viewer/models/period.coffee
index e2faaa4c664..3b7a73b9369 100644
--- a/sonar-server/src/main/coffee/component-viewer/models/period.coffee
+++ b/sonar-server/src/main/coffee/component-viewer/models/period.coffee
@@ -9,5 +9,4 @@ define [
defaults:
key: ''
- label: t 'none'
sinceDate: null