Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions playwright/e2e/versions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ test.describe('Versions with distant timestamps', () => {
.getByRole('menuitem', { name: 'Compare to current version' })
.click()
const oldVersion = page.getByRole('textbox')
const current = page.locator(
'.viewer__content .viewer__file--active .ProseMirror',
)
const current = page.locator('.ProseMirror[contenteditable="true"]')
await expect(oldVersion.getByRole('heading', { name: 'V1' })).toBeVisible()
await expect(current.getByRole('heading', { name: 'V3' })).toBeVisible()
})
Expand Down
8 changes: 4 additions & 4 deletions src/components/SourceView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ export default {
type: String,
default: undefined,
},
isEncrypted: {
type: Boolean,
default: false,
},
},
data() {
return {
content: '',
}
},
computed: {
isEncrypted() {
return this.$attrs.e2EeIsEncrypted || false
},

isMarkdown() {
return (
this.mime === 'text/markdown' || this.mime === 'text/x-web-markdown'
Expand Down
5 changes: 5 additions & 0 deletions src/components/ViewerComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
v-else
:fileid="fileid"
:filename="filename"
:is-encrypted="isEncrypted"
:mime="mime"
:source="source"
v-bind="$attrs"
Expand Down Expand Up @@ -93,6 +94,10 @@ export default defineComponent({
&& !this.hasToggledInteractiveEmbedding
)
},

isEncrypted() {
return this.$attrs.e2EeIsEncrypted || false
},
},

mounted() {
Expand Down
Loading