Skip to content

Commit

Permalink
fix: showing RichWorkspace while changing folder
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Trovic <luka@nextcloud.com>
  • Loading branch information
luka-nextcloud committed Nov 10, 2023
1 parent f414725 commit 9f16fd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/RichWorkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
-->

<template>
<div v-if="enabled"
<div v-if="enabled && file !== null"
id="rich-workspace"
:class="{'focus': focus, 'dark': darkTheme }">
<RichTextReader v-if="!loaded || !ready" :content="content" class="rich-workspace--preview" />
Expand Down Expand Up @@ -88,7 +88,7 @@ export default {
autofocus: false,
autohide: true,
darkTheme: OCA.Accessibility && OCA.Accessibility.theme === 'dark',
enabled: OCA.Text.RichWorkspaceEnabled && this.hasRichWorkspace,
enabled: OCA.Text.RichWorkspaceEnabled,
}
},
computed: {
Expand All @@ -107,7 +107,7 @@ export default {
},
},
mounted() {
if (this.enabled) {
if (this.enabled && this.hasRichWorkspace) {
this.getFileInfo()
}
subscribe('Text::showRichWorkspace', this.showRichWorkspace)
Expand Down

0 comments on commit 9f16fd3

Please sign in to comment.