Set fileInfo correctly for LegacyTabs

Watch for changes of the fileInfo prop and propagate it to,
the underlying component.

Fixes #20106.

Signed-off-by: Christoph Seitz <christoph.seitz@posteo.de>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
Christoph Seitz 2020-04-19 22:41:40 +02:00 committed by npmbuildbot[bot]
parent 2cf8fab366
commit 185f867bf8
3 changed files with 5 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

@ -68,9 +68,9 @@ export default {
},
},
watch: {
activeTab(activeTab) {
if (activeTab === this.id && this.fileInfo) {
this.setFileInfo(this.fileInfo)
fileInfo(fileInfo) {
if (fileInfo) {
this.setFileInfo(fileInfo)
}
},
},