diff options
Diffstat (limited to 'apps/files_sharing/src')
-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 |