Skip to content

Commit

Permalink
No need to push activeFile into the cache
Browse files Browse the repository at this point in the history
  • Loading branch information
JanAckermann committed Jul 5, 2022
1 parent 03faad8 commit bd39c37
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/web-app-preview/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<template v-else>
<h1 class="oc-invisible-sr" v-text="pageTitle" />
<div class="oc-flex oc-p-s preview-tool-bar">
<oc-resource :resource="activeMediaFileCached.resource" />
<oc-resource :resource="activeFilteredFile" />
<div>
<oc-button
class="preview-controls-download"
Expand All @@ -31,7 +31,7 @@
>
<oc-icon size="small" name="file-download" />
</oc-button>
<oc-button size="small" @click="closeApp">
<oc-button :aria-label="$gettext('Close preview')" size="small" @click="closeApp">
<oc-icon name="close" size="small" />
</oc-button>
</div>
Expand Down Expand Up @@ -306,8 +306,7 @@ export default defineComponent({
mimeType: this.activeFilteredFile.mimeType,
isVideo: this.isActiveFileTypeVideo,
isImage: this.isActiveFileTypeImage,
isAudio: this.isActiveFileTypeAudio,
resource: this.activeFilteredFile
isAudio: this.isActiveFileTypeAudio
})
this.isFileContentLoading = false
this.isFileContentError = false
Expand Down

0 comments on commit bd39c37

Please sign in to comment.