Partial impl for #5142

This commit is contained in:
James Cole
2021-10-02 14:57:20 +02:00
parent eaeb1f99c6
commit 1a1ff2dc44
3 changed files with 112 additions and 84 deletions

View File

@@ -38,41 +38,41 @@ Vue.component('b-pagination', BPagination);
//Vue.use(Vuex);
const app = new Vue({
i18n,
store,
el: "#accounts",
render: (createElement) => {
return createElement(Index, {props: props});
},
beforeCreate() {
i18n,
store,
el: "#accounts",
render: (createElement) => {
return createElement(Index, {props: props});
},
beforeCreate() {
// See reference nr. 10
this.$store.commit('initialiseStore');
this.$store.dispatch('updateCurrencyPreference');
this.$store.commit('initialiseStore');
this.$store.dispatch('updateCurrencyPreference');
// init the new root store (dont care about results)
this.$store.dispatch('root/initialiseStore');
// init the new root store (dont care about results)
this.$store.dispatch('root/initialiseStore');
// also init the dashboard store.
this.$store.dispatch('dashboard/index/initialiseStore');
},
});
// also init the dashboard store.
this.$store.dispatch('dashboard/index/initialiseStore');
},
});
const calendar = new Vue({
i18n,
store,
el: "#calendar",
render: (createElement) => {
return createElement(Calendar, {props: props});
},
i18n,
store,
el: "#calendar",
render: (createElement) => {
return createElement(Calendar, {props: props});
},
// See reference nr. 11
});
});
const opt = new Vue({
i18n,
store,
el: "#indexOptions",
render: (createElement) => {
return createElement(IndexOptions, {props: props});
},
i18n,
store,
el: "#indexOptions",
render: (createElement) => {
return createElement(IndexOptions, {props: props});
},
// See reference nr. 12
});
});

View File

@@ -23,7 +23,7 @@ import Vue from "vue";
import Index from "../../components/bills/Index";
import store from "../../components/store";
import {BPagination, BTable} from 'bootstrap-vue';
//import Calendar from "../../components/dashboard/Calendar";
import Calendar from "../../components/dashboard/Calendar";
//import IndexOptions from "../../components/accounts/IndexOptions";
// i18n
@@ -38,35 +38,35 @@ Vue.component('b-pagination', BPagination);
//Vue.use(Vuex);
const app = new Vue({
i18n,
store,
el: "#bills",
render: (createElement) => {
return createElement(Index, {props: props});
},
beforeCreate() {
// See reference nr. 10
this.$store.commit('initialiseStore');
this.$store.dispatch('updateCurrencyPreference');
// init the new root store (dont care about results)
this.$store.dispatch('root/initialiseStore');
// also init the dashboard store.
this.$store.dispatch('dashboard/index/initialiseStore');
},
});
new Vue({
i18n,
store,
el: "#bills",
el: "#calendar",
render: (createElement) => {
return createElement(Index, {props: props});
},
beforeCreate() {
// See reference nr. 10
this.$store.commit('initialiseStore');
this.$store.dispatch('updateCurrencyPreference');
// init the new root store (dont care about results)
this.$store.dispatch('root/initialiseStore');
// also init the dashboard store.
//this.$store.dispatch('dashboard/index/initialiseStore');
return createElement(Calendar, {props: props});
},
// See reference nr. 11
});
// new Vue({
// i18n,
// store,
// el: "#calendar",
// render: (createElement) => {
// return createElement(Calendar, {props: props});
// },
// // See reference nr. 11
// });
// new Vue({
// i18n,
// store,