diff options
author | F. E Noel Nfebe <fenn25.fn@gmail.com> | 2024-02-14 06:36:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 06:36:33 +0100 |
commit | e2e226d8565d31ae263239dccebd8cd14d974441 (patch) | |
tree | 2d9235fd8c834b8d44947cca07b87c4dcc66117f /apps | |
parent | 1b2f3114ab9c53f17cf215da7938a03f5c9b5d85 (diff) | |
parent | db6a04180e15ba1f3ba9032f0a775b6c789b6c42 (diff) | |
download | nextcloud-server-e2e226d8565d31ae263239dccebd8cd14d974441.tar.gz nextcloud-server-e2e226d8565d31ae263239dccebd8cd14d974441.zip |
Merge pull request #42780 from nextcloud/backport/42126/stable27
[stable27] Tooltip outside click, should abort share creation
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntryLink.vue | 2 | ||||
-rw-r--r-- | apps/files_sharing/src/mixins/SharesMixin.js | 5 |
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 9218d7afe2e..ad4ffa9839f 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -58,7 +58,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 |