Merge pull request #3635 from nextcloud/bugfix/fix-missing-file-sidebar

🐛 Fix missing files sidebar
This commit is contained in:
Julius Härtl
2022-03-12 11:41:15 +01:00
committed by GitHub
2 changed files with 14 additions and 0 deletions

View File

@@ -45,4 +45,7 @@ export default {
#app-sidebar .icon-close {
z-index: 100;
}
.app-deck .app-sidebar {
z-index: 20000 !important;
}
</style>

View File

@@ -63,6 +63,17 @@ Vue.config.errorHandler = (err, vm, info) => {
console.error(err)
}
// TODO: remove when we have a proper fileinfo standalone library
// original scripts are loaded from
// https://github.com/nextcloud/server/blob/5bf3d1bb384da56adbf205752be8f840aac3b0c5/lib/private/legacy/template.php#L120-L122
window.addEventListener('DOMContentLoaded', () => {
if (!window.OCA.Files) {
window.OCA.Files = {}
}
// register unused client for the sidebar to have access to its parser methods
Object.assign(window.OCA.Files, { App: { fileList: { filesClient: OC.Files.getClient() } } }, window.OCA.Files)
})
/* eslint-disable-next-line no-new */
new Vue({
el: '#content',