Skip to content

Commit

Permalink
fix: Apply workaround for different vue instances
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Nov 29, 2024
1 parent a660351 commit 4c4b507
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/Modal/SaveAs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<template>
<NcModal>
<NcModal :name="t('richdocuments', 'Save as')">
<div class="saveas-dialog">
<h1>{{ name }}</h1>
<p>{{ description }}</p>
Expand Down Expand Up @@ -80,8 +80,8 @@ export default {
const filenameWithoutExtension = filename.substring(0, filename.length - extension.length - 1)
return filenameWithoutExtension + '.' + (this.format !== '' ? this.format : extension)
},
set(event) {
this.selectedPath = event.target.value
set(value) {
this.selectedPath = value
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/ZoteroHint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<template>
<NcModal :show="show" @close="close">
<NcModal :show="show" @close="close" :name="t('richdocument', 'Link to your Zotero library')">
<div class="zotero-hint">
<h2>{{ t('richdocument', 'Link to your Zotero library') }}</h2>
<BookOpenPageVariantOutline :size="96" />
Expand Down
3 changes: 2 additions & 1 deletion src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import './init-shared.js'
import '../css/filetypes.scss'

import Vue from 'vue'
import Office from './view/Office.vue'
import { getCapabilities } from './services/capabilities.ts'
import { autoSetupBuiltInCodeServerIfNeeded } from './services/builtInCode.ts'
Expand All @@ -17,7 +18,7 @@ if (OCA.Viewer) {
id: 'richdocuments',
group: null,
mimes: supportedMimes,
component: Office,
component: Vue.extend(Office),
theme: 'default',
canCompare: true,
})
Expand Down

0 comments on commit 4c4b507

Please sign in to comment.