Skip to content

Commit cd37eb0

Browse files
committed
fix: Apply workaround for different vue instances
Signed-off-by: Julius Knorr <[email protected]>
1 parent e1a5577 commit cd37eb0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/components/Modal/SaveAs.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-->
55

66
<template>
7-
<NcModal>
7+
<NcModal :name="t('richdocuments', 'Save as')">
88
<div class="saveas-dialog">
99
<h1>{{ name }}</h1>
1010
<p>{{ description }}</p>
@@ -80,8 +80,8 @@ export default {
8080
const filenameWithoutExtension = filename.substring(0, filename.length - extension.length - 1)
8181
return filenameWithoutExtension + '.' + (this.format !== '' ? this.format : extension)
8282
},
83-
set(event) {
84-
this.selectedPath = event.target.value
83+
set(value) {
84+
this.selectedPath = value
8585
},
8686
},
8787
},

src/components/Modal/ZoteroHint.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-->
55

66
<template>
7-
<NcModal :show="show" @close="close">
7+
<NcModal :show="show" @close="close" :name="t('richdocument', 'Link to your Zotero library')">
88
<div class="zotero-hint">
99
<h2>{{ t('richdocument', 'Link to your Zotero library') }}</h2>
1010
<BookOpenPageVariantOutline :size="96" />

src/viewer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import './init-shared.js'
77
import '../css/filetypes.scss'
88

9+
import Vue from 'vue'
910
import Office from './view/Office.vue'
1011
import { getCapabilities } from './services/capabilities.ts'
1112
import { autoSetupBuiltInCodeServerIfNeeded } from './services/builtInCode.ts'
@@ -17,7 +18,7 @@ if (OCA.Viewer) {
1718
id: 'richdocuments',
1819
group: null,
1920
mimes: supportedMimes,
20-
component: Office,
21+
component: Vue.extend(Office),
2122
theme: 'default',
2223
canCompare: true,
2324
})

0 commit comments

Comments
 (0)