From d37c5c303841a146736b1cf44a12fa0a3ee21b13 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Tue, 5 May 2020 18:09:35 +0200 Subject: Do not process the same FileInfo twice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) Signed-off-by: npmbuildbot[bot] --- apps/files_sharing/src/views/SharingTab.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'apps/files_sharing/src') 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 -- cgit v1.2.3