mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 03:00:14 +00:00
Fix budget overview for #2593
This commit is contained in:
16
public/v1/js/ff/budgets/show.js
vendored
16
public/v1/js/ff/budgets/show.js
vendored
@@ -23,17 +23,15 @@
|
||||
$(function () {
|
||||
"use strict";
|
||||
if (budgetLimitID > 0) {
|
||||
lineChart(budgetChartUri, 'budgetOverview');
|
||||
}
|
||||
if (budgetLimitID === 0) {
|
||||
columnChart(budgetChartUri, 'budgetOverview');
|
||||
}
|
||||
|
||||
// other three charts:
|
||||
if (budgetLimitID > 0) {
|
||||
otherCurrencyLineChart(budgetChartUri, 'budgetOverview', currencySymbol);
|
||||
pieChart(expenseCategoryUri, 'budget-cat-out');
|
||||
pieChart(expenseAssetUri, 'budget-asset-out');
|
||||
pieChart(expenseExpenseUri, 'budget-expense-out');
|
||||
}
|
||||
if (budgetLimitID === 0) {
|
||||
columnChart(budgetChartUri, 'budgetOverview');
|
||||
pieChart(expenseCategoryUri, 'budget-cat-out');
|
||||
pieChart(expenseAssetUri, 'budget-asset-out');
|
||||
pieChart(expenseExpenseUri, 'budget-expense-out');
|
||||
}
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user