File tree Expand file tree Collapse file tree
apps/files_sharing/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 102102 :checked.sync =" defaultExpirationDateEnabled"
103103 :disabled =" pendingEnforcedExpirationDate || saving"
104104 class =" share-link-expiration-date-checkbox"
105- @change = " onExpirationDateToggleChange " >
105+ @update:model-value = " onExpirationDateToggleUpdate " >
106106 {{ config.isDefaultExpireDateEnforced ? t('files_sharing', 'Enable link expiration (enforced)') : t('files_sharing', 'Enable link expiration') }}
107107 </NcActionCheckbox >
108108
@@ -870,9 +870,14 @@ export default {
870870 this .onPasswordSubmit ()
871871 this .onNoteSubmit ()
872872 },
873- onExpirationDateToggleChange (enabled ) {
873+
874+ /**
875+ * @param enabled True if expiration is enabled
876+ */
877+ onExpirationDateToggleUpdate (enabled ) {
874878 this .share .expireDate = enabled ? this .formatDateToString (this .config .defaultExpirationDate ) : ' '
875879 },
880+
876881 expirationDateChanged (event ) {
877882 const date = event .target .value
878883 this .onExpirationChange (date)
You can’t perform that action at this time.
0 commit comments