mirror of
https://github.com/gwenhael-le-moine/credger.git
synced 2024-12-26 09:58:36 +01:00
missing trailing ;
This commit is contained in:
parent
2406bc7420
commit
31abc55cba
1 changed files with 3 additions and 5 deletions
|
@ -98,8 +98,8 @@ app.component('bucket',
|
||||||
return {
|
return {
|
||||||
key: category,
|
key: category,
|
||||||
values: _(ctrl.raw_data).select((line) => { return line.account.match(`^${category}:.*`); })
|
values: _(ctrl.raw_data).select((line) => { return line.account.match(`^${category}:.*`); })
|
||||||
}
|
};
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -194,9 +194,7 @@ app.component('dashboard',
|
||||||
interactiveLayer: {
|
interactiveLayer: {
|
||||||
dispatch: {
|
dispatch: {
|
||||||
elementClick: (t) => {
|
elementClick: (t) => {
|
||||||
console.log(ctrl.period)
|
|
||||||
ctrl.period = t.pointXValue;
|
ctrl.period = t.pointXValue;
|
||||||
console.log(ctrl.period)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
@ -281,7 +279,7 @@ app.component('dashboard',
|
||||||
name: account[0],
|
name: account[0],
|
||||||
depth: _(['Expenses']).contains(account[0]) ? 2 : _(['Income']).contains(account[0]) ? 1 : 0,
|
depth: _(['Expenses']).contains(account[0]) ? 2 : _(['Income']).contains(account[0]) ? 1 : 0,
|
||||||
max_depth: _.chain(ctrl.raw_accounts)
|
max_depth: _.chain(ctrl.raw_accounts)
|
||||||
.select((account2) => { return account2[0] == account[0] })
|
.select((account2) => { return account2[0] == account[0]; })
|
||||||
.reduce((memo, account3) => { return account3.length > memo ? account3.length : memo; }, 0)
|
.reduce((memo, account3) => { return account3.length > memo ? account3.length : memo; }, 0)
|
||||||
.value()
|
.value()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue