Skip to content

Commit

Permalink
refactor(files): remove unnecessary prop
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmcg committed Apr 7, 2022
1 parent 134923a commit 524d77d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
7 changes: 1 addition & 6 deletions components/ui/Global/Global.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,7 @@
v-click-outside="() => toggleModal(ModalWindows.CHANGELOG)"
/>
<UiChatImageOverlay v-if="ui.chatImageOverlay" />
<FilesView
v-if="ui.filePreview"
:fileName="ui.filePreview"
@close="closeFilePreview()"
@share="share"
/>
<FilesView v-if="ui.filePreview" @close="closeFilePreview()" @share="share" />
<transition :name="$device.isMobile ? 'slide' : ''">
<InteractablesQuickProfile v-if="ui.quickProfile" :user="ui.quickProfile" />
</transition>
Expand Down
8 changes: 1 addition & 7 deletions components/views/files/view/View.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ export default Vue.extend({
XIcon,
LinkIcon,
},
props: {
fileName: {
type: String,
required: true,
},
},
data() {
return {
load: false as boolean,
Expand All @@ -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
Expand Down

0 comments on commit 524d77d

Please sign in to comment.