Skip to content

Commit

Permalink
fix: Isolate all used components for the viewer component from parent…
Browse files Browse the repository at this point in the history
… vue instance

Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Mar 28, 2024
1 parent 612bd69 commit a42b1aa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/ViewerComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
</template>

<script>
import Vue from 'vue'
import axios from '@nextcloud/axios'
import PencilIcon from 'vue-material-design-icons/Pencil.vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
Expand All @@ -57,10 +58,10 @@ import getEditorInstance from './Editor.singleton.js'
export default {
name: 'ViewerComponent',
components: {
NcButton,
PencilIcon,
RichTextReader,
PlainTextReader,
NcButton: Vue.extend(NcButton),
PencilIcon: Vue.extend(PencilIcon),
RichTextReader: Vue.extend(RichTextReader),
PlainTextReader: Vue.extend(PlainTextReader),
Editor: getEditorInstance,
},
provide() {
Expand Down

0 comments on commit a42b1aa

Please sign in to comment.