Experimental rebuild.

This commit is contained in:
James Cole
2021-06-19 19:29:51 +02:00
parent 1f2c0f634b
commit 1bd87bfb88
34 changed files with 61 additions and 57 deletions

View File

@@ -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();

View File

@@ -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;

View File

@@ -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');