aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2025-02-14 14:32:35 -0800
committerChristopher Ng <chrng8@gmail.com>2025-02-18 14:51:37 -0800
commit058bcc9c40a5aa10e00208d7f7031a411290b0fb (patch)
tree6053fa50b02a15dd017a3e8db48e316ac9c0026d
parentbcf07e98602568c66ef81e31e3af595e1ec9fddf (diff)
downloadnextcloud-server-backport/50820/stable30.tar.gz
nextcloud-server-backport/50820/stable30.zip
fix(files_sharing): Fix public share expiration being set when toggle is not enabledbackport/50820/stable30
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 e07aec73b08..0458fb6f0f0 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -85,7 +85,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>
@@ -867,9 +867,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)