From 9f1d8b9daf79b8cbfed55265f8976c5041b26cff 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 c90d0c7f..81a7e0cb 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 f31adb94..1e86ecf6 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" />