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,