mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-20 18:21:21 +00:00
Experimental rebuild.
This commit is contained in:
@@ -102,6 +102,7 @@ Vue.component('date-picker', DatePicker)
|
||||
export default {
|
||||
name: "Calendar",
|
||||
created() {
|
||||
console.log('Now in calendar created');
|
||||
this.ready = true;
|
||||
this.locale = localStorage.locale ?? 'en-US';
|
||||
},
|
||||
@@ -128,9 +129,9 @@ export default {
|
||||
],
|
||||
),
|
||||
resetDate: function () {
|
||||
//console.log('Reset date to');
|
||||
//console.log(this.defaultStart);
|
||||
//console.log(this.defaultEnd);
|
||||
console.log('Reset date to');
|
||||
console.log(this.defaultStart);
|
||||
console.log(this.defaultEnd);
|
||||
this.range.start = this.defaultStart;
|
||||
this.range.end = this.defaultEnd;
|
||||
this.setStart(this.defaultStart);
|
||||
@@ -511,7 +512,7 @@ export default {
|
||||
},
|
||||
generatePeriods: function () {
|
||||
this.periods = [];
|
||||
//console.log('The view range is "' + this.viewRange + '".');
|
||||
console.log('The view range is "' + this.viewRange + '".');
|
||||
switch (this.viewRange) {
|
||||
case '1D':
|
||||
this.generateDaily();
|
||||
|
||||
2
frontend/src/components/store/index.js
vendored
2
frontend/src/components/store/index.js
vendored
@@ -66,6 +66,7 @@ export default new Vuex.Store(
|
||||
state.currencyPreference = payload.payload;
|
||||
},
|
||||
initialiseStore(state) {
|
||||
console.log('Now in initialiseStore()')
|
||||
// if locale in local storage:
|
||||
if (localStorage.locale) {
|
||||
state.locale = localStorage.locale;
|
||||
@@ -97,6 +98,7 @@ export default new Vuex.Store(
|
||||
actions: {
|
||||
|
||||
updateCurrencyPreference(context) {
|
||||
console.log('Now in updateCurrencyPreference');
|
||||
if (localStorage.currencyPreference) {
|
||||
context.commit('setCurrencyPreference', {payload: JSON.parse(localStorage.currencyPreference)});
|
||||
return;
|
||||
|
||||
@@ -61,7 +61,7 @@ const getters = {
|
||||
// actions
|
||||
const actions = {
|
||||
initialiseStore(context) {
|
||||
// console.log('initialiseStore');
|
||||
console.log('initialiseStore for dashboard.');
|
||||
|
||||
// restore from local storage:
|
||||
context.dispatch('restoreViewRange');
|
||||
|
||||
Reference in New Issue
Block a user