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

@@ -80,7 +80,7 @@
echo "<div class='hud_container' ".($dashboard_details_state == "disabled" ?: "onclick=\"$('#hud_switch_status_details').slideToggle('fast'); toggle_grid_row_end('".$dashboard_name."')\"").">\n";
echo " <span class='hud_title'>".$text['label-switch_status']."</span>\n";
if ($dashboard_chart_type == "doughnut") {
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "doughnut") {
//add doughnut chart
?>
<div class='hud_chart'><canvas id='switch_status_chart'></canvas></div>
@@ -125,7 +125,7 @@
</script>
<?php
}
if ($dashboard_chart_type == "none") {
if ($dashboard_chart_type == "number") {
echo " <span class='hud_stat'>".$registrations."</span>";
}
echo " </div>\n";