mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-18 09:11:20 +00:00
Partial impl for #5142
This commit is contained in:
58
frontend/src/pages/accounts/index.js
vendored
58
frontend/src/pages/accounts/index.js
vendored
@@ -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
|
||||
});
|
||||
});
|
||||
48
frontend/src/pages/bills/index.js
vendored
48
frontend/src/pages/bills/index.js
vendored
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user