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 9b7354a commit 38edfb0
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 @@ -20,7 +20,7 @@
-->

<template>
<NcModal>
<NcModal :name="t('richdocuments', 'Save as')">
<div class="saveas-dialog">
<h1>{{ name }}</h1>
<p>{{ description }}</p>
Expand Down Expand Up @@ -96,8 +96,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 @@ -20,7 +20,7 @@
-->

<template>
<NcModal :show="show" @close="close">
<NcModal :show="show" @close="close" :name="t('richdocument', 'Link to your Zotero library')">

Check warning on line 23 in src/components/Modal/ZoteroHint.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute ":name" should go before "@close"
<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 @@ -24,6 +24,7 @@
import './init-shared.js'
import '../css/filetypes.scss'

import Vue from 'vue'
import Office from './view/Office.vue'
import { getCapabilities } from '@nextcloud/capabilities'

Expand All @@ -34,7 +35,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 38edfb0

Please sign in to comment.