Dashboard - Minor changes (#6993)

This commit is contained in:
Alex
2024-06-03 10:40:05 -07:00
committed by GitHub
parent d48208456b
commit f6e6750efc
14 changed files with 66 additions and 35 deletions

View File

@@ -106,7 +106,7 @@
echo " <span class='hud_title'>".$text['header-call_forward']."</span>\n";
//doughnut chart
if ($dashboard_chart_type == "doughnut") {
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "doughnut") {
echo "<div class='hud_chart' style='width: 275px;'><canvas id='call_forward_chart'></canvas></div>\n";
echo "<script>\n";
@@ -191,7 +191,7 @@
echo " );\n";
echo "</script>\n";
}
if ($dashboard_chart_type == "none") {
if ($dashboard_chart_type == "number") {
echo " <span class='hud_stat'>".$stats['call_forward']."</span>";
}
echo " </div>\n";