Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Kim <gary@garykim.dev>2020-05-01 12:06:24 +0300
committerGary Kim <gary@garykim.dev>2020-05-02 13:58:41 +0300
commit8dd23f98542417829162f829c0ed63f11e1d8e3e (patch)
tree7832f2b1dd52f91661a5ef4f6329945cc0009cb9 /apps/files_sharing/src/components/SharingEntry.vue
parente77e0b0e2f034633307fcc054d582c0567090776 (diff)
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 <gary@garykim.dev>
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntry.vue')
-rw-r--r--apps/files_sharing/src/components/SharingEntry.vue3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue
index e3f7497181f..288236abad7 100644
--- a/apps/files_sharing/src/components/SharingEntry.vue
+++ b/apps/files_sharing/src/components/SharingEntry.vue
@@ -95,8 +95,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') }}
</ActionInput>