From 8dd23f98542417829162f829c0ed63f11e1d8e3e Mon Sep 17 00:00:00 2001 From: Gary Kim Date: Fri, 1 May 2020 17:06:24 +0800 Subject: Fix expiry datepicker allowing all dates vue2-datepicker expects a `disabled-date` function rather than `not-before` and `not-after` dates. This commit updates it so that we now provide vue2-datepicker with a `disabled-date` function. Signed-off-by: Gary Kim --- apps/files_sharing/src/components/SharingEntryLink.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'apps/files_sharing/src/components/SharingEntryLink.vue') diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index f8b8137cd29..e1722420a49 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -105,8 +105,7 @@ icon="" type="date" value-type="format" - :not-before="dateTomorrow" - :not-after="dateMaxEnforced"> + :disabled-date="disabledDate"> {{ t('files_sharing', 'Enter a date') }} @@ -231,8 +230,7 @@ value-type="format" icon="icon-calendar-dark" type="date" - :not-before="dateTomorrow" - :not-after="dateMaxEnforced" + :disabled-date="disabledDate" @update:value="onExpirationChange"> {{ t('files_sharing', 'Enter a date') }} -- cgit v1.2.3