Limit year range in the datepicker

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-11-04 17:07:07 +01:00
parent 5111d2d6db
commit a936784bd9
2 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ In order to move participant stats to the event table for existing events, you n
- Improve Docker setup and docs - Improve Docker setup and docs
- Upgrade vue-cli to v4, change the way server params injection is made - Upgrade vue-cli to v4, change the way server params injection is made
- Improve some production ipv6 configuration - Improve some production ipv6 configuration
- Limited year range in the DatePicker
### Fixed ### Fixed
- Fix event URL validation and check if hostname is correct before showing it - Fix event URL validation and check if hostname is correct before showing it

View File

@ -25,6 +25,7 @@
:min-date="minDate" :min-date="minDate"
v-model="dateWithoutTime" v-model="dateWithoutTime"
:placeholder="$t('Click to select')" :placeholder="$t('Click to select')"
:years-range="[-2,10]"
icon="calendar" icon="calendar"
class="is-narrow" class="is-narrow"
/> />