diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-05-05 18:09:35 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-05-06 19:41:31 +0000 |
commit | d37c5c303841a146736b1cf44a12fa0a3ee21b13 (patch) | |
tree | d1952bf33134c4950e705b100a54cb874b998021 /apps/files_sharing/src/views | |
parent | 07f41671b36399bb1e6e9d97546e0d9716ccbf75 (diff) | |
download | nextcloud-server-d37c5c303841a146736b1cf44a12fa0a3ee21b13.tar.gz nextcloud-server-d37c5c303841a146736b1cf44a12fa0a3ee21b13.zip |
Do not process the same FileInfo twice
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src/views')
-rw-r--r-- | apps/files_sharing/src/views/SharingTab.vue | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue index 3aa3cf17706..445bad3795c 100644 --- a/apps/files_sharing/src/views/SharingTab.vue +++ b/apps/files_sharing/src/views/SharingTab.vue @@ -183,12 +183,18 @@ export default { }, watch: { - fileInfo() { - this.resetState() - this.getShares() + fileInfo(newFile, oldFile) { + if (newFile.id !== oldFile.id) { + this.resetState() + this.getShares() + } }, }, + beforeMount() { + this.getShares() + }, + methods: { /** * Get the existing shares infos |