Merge pull request #3643 from nextcloud/backport/3635/stable21
[stable21] 🐛 Fix missing files sidebar
This commit is contained in:
@@ -45,4 +45,8 @@ export default {
|
||||
#app-sidebar .icon-close {
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.app-deck .app-sidebar {
|
||||
z-index: 20000 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
11
src/main.js
11
src/main.js
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user