Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-05-05 19:09:35 +0300
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2020-05-06 22:41:31 +0300
commitd37c5c303841a146736b1cf44a12fa0a3ee21b13 (patch)
treed1952bf33134c4950e705b100a54cb874b998021 /apps/files_sharing/src/views
parent07f41671b36399bb1e6e9d97546e0d9716ccbf75 (diff)
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.vue12
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