diff options
author | Christoph Seitz <christoph.seitz@posteo.de> | 2020-04-19 23:41:40 +0300 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-04-21 16:04:07 +0300 |
commit | 185f867bf88ea60b4e750871530e45641c9c819f (patch) | |
tree | 72cbada2390b385acb885527f48204801e08ff15 /apps/files/src | |
parent | 2cf8fab366b95d7b08c8ff8ace896874d7d96302 (diff) |
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>
Diffstat (limited to 'apps/files/src')
-rw-r--r-- | apps/files/src/components/LegacyTab.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/src/components/LegacyTab.vue b/apps/files/src/components/LegacyTab.vue index 7f9f420d718..10da81eb64e 100644 --- a/apps/files/src/components/LegacyTab.vue +++ b/apps/files/src/components/LegacyTab.vue @@ -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) } }, }, |