From 42402c2cfcd943c4f061b1df24e6bd22c5736f4e Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 11 Oct 2019 18:41:29 +0200 Subject: [PATCH] Limit minimum endsOn datetime selector to current beginsOn, set correct date of first week and translate labels on datepicker Signed-off-by: Thomas Citharel --- js/src/components/Event/DateTimePicker.vue | 21 ++++++++++++++++++++- js/src/i18n/en_US.json | 1 + js/src/i18n/fr_FR.json | 1 + js/src/utils/datetime.ts | 21 +++++++++++++++++++++ js/src/views/Event/Edit.vue | 11 ++++++++++- 5 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 js/src/utils/datetime.ts diff --git a/js/src/components/Event/DateTimePicker.vue b/js/src/components/Event/DateTimePicker.vue index 20fefbe63..8fd28b1af 100644 --- a/js/src/components/Event/DateTimePicker.vue +++ b/js/src/components/Event/DateTimePicker.vue @@ -13,12 +13,23 @@