mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix broken chart
This commit is contained in:
@@ -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) }}';
|
||||
|
Reference in New Issue
Block a user