aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue2
-rw-r--r--apps/files_sharing/src/mixins/SharesMixin.js5
2 files changed, 3 insertions, 4 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index d14fc2b6df3..accc349f734 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -56,7 +56,7 @@
:aria-label="actionsTooltip"
menu-align="right"
:open.sync="open"
- @close="onNewLinkShare">
+ @close="onCancel">
<!-- pending data menu -->
<NcActionText v-if="errors.pending" icon="icon-error" :class="{ error: errors.pending }">
{{ errors.pending }}
diff --git a/apps/files_sharing/src/mixins/SharesMixin.js b/apps/files_sharing/src/mixins/SharesMixin.js
index 41bdf302f7a..b76b72cebe9 100644
--- a/apps/files_sharing/src/mixins/SharesMixin.js
+++ b/apps/files_sharing/src/mixins/SharesMixin.js
@@ -221,10 +221,9 @@ export default {
*
* @param {Date} date
*/
- onExpirationChange(date) {
+ onExpirationChange: debounce((date) => {
this.share.expireDate = this.formatDateToString(new Date(date))
- },
-
+ }, 500),
/**
* Uncheck expire date
* We need this method because @update:checked