mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-18 05:20:43 +01:00
fix(viewer): Do not attempt to register file actions if not available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
d47ac0a56d
commit
c569111de6
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ if (OCA.Viewer) {
|
|||
|
||||
// TODO: Viewer.openWith introduced with https://github.com/nextcloud/viewer/pull/1273
|
||||
// This check can be replaced with `if(OCA.Viewer)` once NC 24 is EOL.
|
||||
if (OCA.Viewer.openWith) {
|
||||
if (OCA.Viewer.openWith && OCA?.Files?.fileActions) {
|
||||
const supportedMimes = getCapabilities().richdocuments.mimetypesNoDefaultOpen
|
||||
const actionName = 'Edit with ' + getCapabilities().richdocuments.productName
|
||||
const actionDisplayNameEdit = t('richdocuments', 'Edit with {productName}', { productName: getCapabilities().richdocuments.productName }, undefined, { escape: false })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue