aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2025-02-14 14:32:35 -0800
committerAndy Scherzinger <info@andy-scherzinger.de>2025-02-19 12:59:42 +0100
commit9ded1e3c635176ddd9b8fd02058063c594774c8f (patch)
tree2effa5fa3b23f8c9fcd9b105d7b907129023ec91
parent4a4cfa00f10f142e174ab1261b774416cc010386 (diff)
downloadnextcloud-server-9ded1e3c635176ddd9b8fd02058063c594774c8f.tar.gz
nextcloud-server-9ded1e3c635176ddd9b8fd02058063c594774c8f.zip
fix(files_sharing): Fix public share expiration being set when toggle is not enabled
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index c52a587b89f..7f6f146d4bf 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -86,7 +86,7 @@
:checked.sync="defaultExpirationDateEnabled"
:disabled="pendingEnforcedExpirationDate || saving"
class="share-link-expiration-date-checkbox"
- @change="onExpirationDateToggleChange">
+ @update:model-value="onExpirationDateToggleUpdate">
{{ config.isDefaultExpireDateEnforced ? t('files_sharing', 'Enable link expiration (enforced)') : t('files_sharing', 'Enable link expiration') }}
</NcActionCheckbox>
@@ -875,9 +875,14 @@ export default {
this.onPasswordSubmit()
this.onNoteSubmit()
},
- onExpirationDateToggleChange(enabled) {
+
+ /**
+ * @param enabled True if expiration is enabled
+ */
+ onExpirationDateToggleUpdate(enabled) {
this.share.expireDate = enabled ? this.formatDateToString(this.config.defaultExpirationDate) : ''
},
+
expirationDateChanged(event) {
const date = event.target.value
this.onExpirationChange(date)