Merge pull request #20831 from nextcloud/fix/sidebar-fileinfo-change
Do not process the same FileInfo twice
This commit is contained in:
commit
35a506d50b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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…
Reference in New Issue