Browse Source

Merge pull request #20831 from nextcloud/fix/sidebar-fileinfo-change

Do not process the same FileInfo twice
pull/20854/head
Roeland Jago Douma 6 years ago
committed by GitHub
parent
commit
35a506d50b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/files_sharing/js/dist/files_sharing_tab.js
  2. 2
      apps/files_sharing/js/dist/files_sharing_tab.js.map
  3. 12
      apps/files_sharing/src/views/SharingTab.vue

2
apps/files_sharing/js/dist/files_sharing_tab.js
File diff suppressed because it is too large
View File

2
apps/files_sharing/js/dist/files_sharing_tab.js.map
File diff suppressed because it is too large
View File

12
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

Loading…
Cancel
Save