mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-01 21:19:11 -06:00
Fix broken chart
This commit is contained in:
parent
2295110cf1
commit
fb0a100a7f
@ -191,6 +191,12 @@
|
||||
var expenseCategoryUrl = '{{ route('chart.account.expense-category', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';
|
||||
var expenseBudgetUrl = '{{ route('chart.account.expense-budget', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';
|
||||
var drawVerticalLine = '';
|
||||
var lineColor = 'red';
|
||||
var lineTextColor = '#000';
|
||||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
lineColor = '#a00';
|
||||
lineTextColor = '#bec5cb';
|
||||
}
|
||||
{# render vertical line with text "today" #}
|
||||
{% if start.lte(today) and end.gte(today) %}
|
||||
drawVerticalLine = '{{ today.isoFormat(monthAndDayFormat) }}';
|
||||
|
@ -172,8 +172,8 @@
|
||||
var lineColor = 'red';
|
||||
var lineTextColor = '#000';
|
||||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
var lineColor = '#a00';
|
||||
var lineTextColor = '#bec5cb';
|
||||
lineColor = '#a00';
|
||||
lineTextColor = '#bec5cb';
|
||||
}
|
||||
var billCount = {{ billCount }};
|
||||
var accountFrontpageUrl = '{{ route('chart.account.frontpage') }}';
|
||||
|
Loading…
Reference in New Issue
Block a user