From ac0ac49321822ed36c9a36817a661eba3821713e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 8 Dec 2023 09:36:15 +0100 Subject: [PATCH] fix: Resolve file list dependency of the sidebar on Nextcloud <= 27 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.js b/src/main.js index 1b425046e..03643ef96 100644 --- a/src/main.js +++ b/src/main.js @@ -5,6 +5,10 @@ import store from './store.js' Vue.mixin({ methods: { t, n } }) +// Make sure that the filesClient is available in the global scope used by the sidebar +// FIXME: Can be dropped once Nextcloud 28 is the minimum supported version +Object.assign(window.OCA.Files, { App: { fileList: { filesClient: OC.Files.getClient() } } }, window.OCA.Files) + export default new Vue({ el: '#content', store,