aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogDatePassword.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogDatePassword.vue')
-rw-r--r--apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogDatePassword.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogDatePassword.vue b/apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogDatePassword.vue
index 0eb89388122..091679ae5c4 100644
--- a/apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogDatePassword.vue
+++ b/apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogDatePassword.vue
@@ -201,7 +201,7 @@ export default defineComponent({
methods: {
onToggleDeadline(checked: boolean) {
- this.$emit('update:expirationDate', checked ? new Date() : null)
+ this.$emit('update:expirationDate', checked ? (this.maxDate || this.minDate) : null)
},
async onTogglePassword(checked: boolean) {