diff options
author | Christoph Seitz <christoph.seitz@posteo.de> | 2020-04-19 22:41:40 +0200 |
---|---|---|
committer | Christoph Seitz <christoph.seitz@posteo.de> | 2020-04-19 22:56:30 +0200 |
commit | c9e0ea525be6d4ffb4486dac98a02fe9de68ac31 (patch) | |
tree | 1056d3153a61521a86bf11da8a5c09a4c29d5c63 /apps/files/src | |
parent | 039143e98e2b579097c5e697950b21401df974bb (diff) | |
download | nextcloud-server-c9e0ea525be6d4ffb4486dac98a02fe9de68ac31.tar.gz nextcloud-server-c9e0ea525be6d4ffb4486dac98a02fe9de68ac31.zip |
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>
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 eaa72a99bbb..25c8f12666b 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) } }, }, |