diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-01-16 00:31:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 00:31:23 +0100 |
commit | 312f7c9c071bf14f98464185d7b4e9ed2a21cf9c (patch) | |
tree | 0090f5a976294b20587bb5d04fb1413b636d9af1 /apps/files_sharing/src/components/SharingEntry.vue | |
parent | d8f3759105c01d4f91d50ecaed05b76203c7359b (diff) | |
parent | 9a0fa63a5c1f8fa6bb4ce21fd77de55c66aaacbf (diff) | |
download | nextcloud-server-312f7c9c071bf14f98464185d7b4e9ed2a21cf9c.tar.gz nextcloud-server-312f7c9c071bf14f98464185d7b4e9ed2a21cf9c.zip |
Merge pull request #18894 from nextcloud/fix/note/debounce
Save sharing note on close or submit
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntry.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntry.vue | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index ff6e8bcae77..ee944a76258 100644 --- a/apps/files_sharing/src/components/SharingEntry.vue +++ b/apps/files_sharing/src/components/SharingEntry.vue @@ -29,7 +29,10 @@ <div v-tooltip.auto="tooltip" class="sharing-entry__desc"> <h5>{{ title }}</h5> </div> - <Actions menu-align="right" class="sharing-entry__actions"> + <Actions + menu-align="right" + class="sharing-entry__actions" + @close="onMenuClose"> <template v-if="share.canEdit"> <!-- edit permission --> <ActionCheckbox @@ -114,9 +117,10 @@ }" :class="{ error: errors.note}" :disabled="saving" - :value.sync="share.note" + :value="share.newNote || share.note" icon="icon-edit" - @update:value="debounceQueueUpdate('note')" /> + @update:value="onNoteChange" + @submit="onNoteSubmit" /> </template> </template> @@ -303,6 +307,13 @@ export default { this.share.permissions = permissions this.queueUpdate('permissions') }, + + /** + * Save potential changed data on menu close + */ + onMenuClose() { + this.onNoteSubmit() + }, }, } </script> |