From a936784bd92a96cb10167dcbfc5edb76208f0e29 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 4 Nov 2019 17:07:07 +0100 Subject: [PATCH] Limit year range in the datepicker Signed-off-by: Thomas Citharel --- CHANGELOG.md | 1 + js/src/components/Event/DateTimePicker.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c90d0c7fb..81a7e0cb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ In order to move participant stats to the event table for existing events, you n - Improve Docker setup and docs - Upgrade vue-cli to v4, change the way server params injection is made - Improve some production ipv6 configuration +- Limited year range in the DatePicker ### Fixed - Fix event URL validation and check if hostname is correct before showing it diff --git a/js/src/components/Event/DateTimePicker.vue b/js/src/components/Event/DateTimePicker.vue index f31adb947..1e86ecf6e 100644 --- a/js/src/components/Event/DateTimePicker.vue +++ b/js/src/components/Event/DateTimePicker.vue @@ -25,6 +25,7 @@ :min-date="minDate" v-model="dateWithoutTime" :placeholder="$t('Click to select')" + :years-range="[-2,10]" icon="calendar" class="is-narrow" />