From f29d5fe02853cd418a5a33cf7d7d034cef216750 Mon Sep 17 00:00:00 2001 From: Azul Date: Sat, 5 Jun 2021 14:44:28 +0200 Subject: [PATCH] Use new viewer syntax with destructuring object With nextcloud/viewer#936 and Nextcloud 22 the old syntax will not be supported anymore. Signed-off-by: Azul --- src/components/card/AttachmentList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/card/AttachmentList.vue b/src/components/card/AttachmentList.vue index ce24850b0..353e53451 100644 --- a/src/components/card/AttachmentList.vue +++ b/src/components/card/AttachmentList.vue @@ -227,7 +227,7 @@ export default { }, showViewer(attachment) { if (attachment.extendedData.fileid && window.OCA.Viewer.availableHandlers.map(handler => handler.mimes).flat().includes(attachment.extendedData.mimetype)) { - window.OCA.Viewer.open(attachment.extendedData.path) + window.OCA.Viewer.open({ path: attachment.extendedData.path }) return }