Skip to content

Commit

Permalink
fix: Resolve file list dependency of the sidebar on Nextcloud <= 27
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Dec 8, 2023
1 parent c7f2184 commit c83c626
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c83c626

Please sign in to comment.