update frontend

This commit is contained in:
James Cole
2023-08-12 17:41:56 +02:00
parent 024e16bf4b
commit b11bfb0aae
40 changed files with 1065 additions and 78 deletions

View File

@@ -32,6 +32,7 @@ let currencies = [];
let chart = null;
let chartData = null;
let afterPromises = false;
export default () => ({
loading: false,
loadingAccounts: false,
@@ -208,10 +209,11 @@ export default () => ({
init() {
// console.log('accounts init');
Promise.all([getVariable('viewRange', '1M'), getVariable('autoConversion', false),]).then((values) => {
Promise.all([getVariable('viewRange', '1M'), getVariable('autoConversion', false), getVariable('language', 'en-US')]).then((values) => {
//console.log('accounts after promises');
this.autoConversion = values[1];
afterPromises = true;
// main dashboard chart:
this.loadChart();
this.loadAccounts();