diff options
Diffstat (limited to 'apps/files/src/components/LegacyTab.vue')
-rw-r--r-- | apps/files/src/components/LegacyTab.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/src/components/LegacyTab.vue b/apps/files/src/components/LegacyTab.vue index 9a85ee7f073..54a24edcdd7 100644 --- a/apps/files/src/components/LegacyTab.vue +++ b/apps/files/src/components/LegacyTab.vue @@ -40,7 +40,6 @@ export default { }, name: { type: String, - default: '', required: true }, fileInfo: { @@ -74,10 +73,16 @@ export default { } } }, + beforeMount() { + this.setFileInfo(this.fileInfo) + }, mounted() { // append the backbone element and set the FileInfo this.component.$el.appendTo(this.$el) }, + beforeDestroy() { + this.component.remove() + }, methods: { setFileInfo(fileInfo) { this.component.setFileInfo(new OCA.Files.FileInfoModel(fileInfo)) |