fix: Move dashboard fetching to dedicated store module

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-04-05 20:56:31 +02:00
parent faac607b75
commit bf37cc2ed8
2 changed files with 54 additions and 2 deletions

View File

@@ -33,7 +33,8 @@ document.addEventListener('DOMContentLoaded', () => {
OCA.Dashboard.register('deck', async (el) => {
const { default: Vue } = await import('vue')
const { default: Vuex } = await import('vuex')
const { default: overview } = await import('./store/overview.js')
const { default: dashboard } = await import('./store/dashboard.js')
const { default: Dashboard } = await import('./views/Dashboard.vue')
Vue.prototype.t = t
Vue.prototype.n = n
@@ -42,7 +43,7 @@ document.addEventListener('DOMContentLoaded', () => {
const store = new Vuex.Store({
modules: {
overview,
dashboard,
},
strict: debug,
})