fix: Resolve file list dependency of the sidebar on Nextcloud <= 27

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2023-12-08 09:36:15 +01:00
parent 8aa3f745ab
commit ac0ac49321
1 changed files with 4 additions and 0 deletions

View File

@ -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,