mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Hide some boxes when the user has no bills.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* globals $, columnChart,showTour, Tour, google, pieChart, stackedColumnChart */
|
||||
/* globals $, columnChart,showTour, Tour, google, pieChart, stackedColumnChart, billCount */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
@@ -33,7 +33,9 @@ function endTheTour() {
|
||||
function drawChart() {
|
||||
"use strict";
|
||||
lineChart('chart/account/frontpage', 'accounts-chart');
|
||||
pieChart('chart/bill/frontpage', 'bills-chart');
|
||||
if (billCount > 0) {
|
||||
pieChart('chart/bill/frontpage', 'bills-chart');
|
||||
}
|
||||
stackedColumnChart('chart/budget/frontpage', 'budgets-chart');
|
||||
columnChart('chart/category/frontpage', 'categories-chart');
|
||||
columnChart('chart/account/expense', 'expense-accounts-chart');
|
||||
|
Reference in New Issue
Block a user