From 524d77dead2824b85c0ea1da4776d46189c63960 Mon Sep 17 00:00:00 2001 From: Joe McGrath Date: Thu, 7 Apr 2022 10:41:50 +0900 Subject: [PATCH] refactor(files): remove unnecessary prop --- components/ui/Global/Global.html | 7 +------ components/views/files/view/View.vue | 8 +------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/components/ui/Global/Global.html b/components/ui/Global/Global.html index 32c9b227b0..eddb9e8045 100644 --- a/components/ui/Global/Global.html +++ b/components/ui/Global/Global.html @@ -92,12 +92,7 @@ v-click-outside="() => toggleModal(ModalWindows.CHANGELOG)" /> - + diff --git a/components/views/files/view/View.vue b/components/views/files/view/View.vue index 9b263c7725..90f51f9e3d 100644 --- a/components/views/files/view/View.vue +++ b/components/views/files/view/View.vue @@ -22,12 +22,6 @@ export default Vue.extend({ XIcon, LinkIcon, }, - props: { - fileName: { - type: String, - required: true, - }, - }, data() { return { load: false as boolean, @@ -43,7 +37,7 @@ export default Vue.extend({ async created() { this.load = true - this.file = this.$FileSystem.getChild(this.fileName) as Fil + this.file = this.$FileSystem.getChild(this.ui.filePreview) as Fil this.name = this.file?.name // if no file data available, pull encrypted file from textile bucket