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>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-05-05 18:09:35 +02:00 committed by backportbot[bot]
parent 3b0e581dec
commit 90a65f83e0
3 changed files with 11 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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