From 246f1584c21b7a64eb6a8afb635206852c77b8bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 24 Aug 2022 11:09:20 +0200 Subject: [PATCH] Allow opening files outside of the file system in viewer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl Signed-off-by: Louis Chemineau --- src/components/ViewerComponent.vue | 62 +++++++++++++++++++++++++++++- src/viewer.js | 1 + 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/src/components/ViewerComponent.vue b/src/components/ViewerComponent.vue index 6ddb359ae4f..6f8f21c618b 100644 --- a/src/components/ViewerComponent.vue +++ b/src/components/ViewerComponent.vue @@ -21,21 +21,29 @@ --> diff --git a/src/viewer.js b/src/viewer.js index ac2da0aba0d..f66559b07ab 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -36,5 +36,6 @@ if (typeof OCA.Viewer === 'undefined') { component: ViewerComponent, group: null, theme: 'default', + canCompare: true, }) }