diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-12-03 15:12:18 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-01-08 10:14:53 +0100 |
commit | dd7bf0f902570d4561c07237ea9072f4fc1d3edc (patch) | |
tree | 0116d397d454e95f1ebbd584230f16820c5ebd72 /apps/dashboard/src | |
parent | 806a176a57526b55c18817577325509dfb4ef648 (diff) | |
download | nextcloud-server-dd7bf0f902570d4561c07237ea9072f4fc1d3edc.tar.gz nextcloud-server-dd7bf0f902570d4561c07237ea9072f4fc1d3edc.zip |
Fix dynamic loading
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/dashboard/src')
-rw-r--r-- | apps/dashboard/src/main.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/dashboard/src/main.js b/apps/dashboard/src/main.js index 54c68bf71ee..f209b00baf4 100644 --- a/apps/dashboard/src/main.js +++ b/apps/dashboard/src/main.js @@ -25,18 +25,19 @@ import App from './App.vue' import { translate as t } from '@nextcloud/l10n' import VTooltip from '@nextcloud/vue/dist/Directives/Tooltip' import { getRequestToken } from '@nextcloud/auth' -import { generateFilePath } from '@nextcloud/router' // eslint-disable-next-line camelcase __webpack_nonce__ = btoa(getRequestToken()) -// eslint-disable-next-line camelcase -__webpack_public_path__ = generateFilePath('dashboard', '', 'js/') Vue.directive('Tooltip', VTooltip) Vue.prototype.t = t // FIXME workaround to make the sidebar work +if (!window.OCA.Files) { + window.OCA.Files = {} +} + Object.assign(window.OCA.Files, { App: { fileList: { filesClient: OC.Files.getClient() } } }, window.OCA.Files) const Dashboard = Vue.extend(App) |