Skip to content

Commit f69b660

Browse files
committed
fix(source-view): compute isEncrypted in ViewerComponent
Follow up for #8037. Signed-off-by: Max <[email protected]>
1 parent 3cdd44f commit f69b660

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

src/components/SourceView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ export default {
6262
type: String,
6363
default: undefined,
6464
},
65+
isEncrypted: {
66+
type: Boolean,
67+
default: false,
68+
},
6569
},
6670
data() {
6771
return {
6872
content: '',
6973
}
7074
},
7175
computed: {
72-
isEncrypted() {
73-
return this.$attrs.e2EeIsEncrypted || false
74-
},
75-
7676
isMarkdown() {
7777
return (
7878
this.mime === 'text/markdown' || this.mime === 'text/x-web-markdown'

src/components/ViewerComponent.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
v-else
1818
:fileid="fileid"
1919
:filename="filename"
20+
:is-encrypted="isEncrypted"
2021
:mime="mime"
2122
:source="source"
2223
v-bind="$attrs"
@@ -93,6 +94,10 @@ export default defineComponent({
9394
&& !this.hasToggledInteractiveEmbedding
9495
)
9596
},
97+
98+
isEncrypted() {
99+
return this.$attrs.e2EeIsEncrypted || false
100+
},
96101
},
97102
98103
mounted() {

0 commit comments

Comments
 (0)