Merge pull request #44076 from nextcloud/fix/file-widget-viewer

Use viewer to open files still on the simple widget
pull/41718/merge
Julius Härtl 3 months ago committed by GitHub
commit 212b297e1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -220,6 +220,10 @@ export default defineComponent({
event.stopPropagation()
event.preventDefault()
this.openFilePicker()
} else if (window?.OCA?.Viewer?.mimetypes.indexOf(this.richObject.mimetype) !== -1 && !window?.OCA?.Viewer?.file) {
event.stopPropagation()
event.preventDefault()
window?.OCA?.Viewer?.open({ path: this.richObject.path })
}
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save