🐛 Fix missing files sidebar
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
This commit is contained in:
@@ -45,4 +45,7 @@ export default {
|
|||||||
#app-sidebar .icon-close {
|
#app-sidebar .icon-close {
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
.app-deck .app-sidebar {
|
||||||
|
z-index: 20000 !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
11
src/main.js
11
src/main.js
@@ -63,6 +63,17 @@ Vue.config.errorHandler = (err, vm, info) => {
|
|||||||
console.error(err)
|
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 */
|
/* eslint-disable-next-line no-new */
|
||||||
new Vue({
|
new Vue({
|
||||||
el: '#content',
|
el: '#content',
|
||||||
|
|||||||
Reference in New Issue
Block a user