Dashboard - Add disabled option to details state (#6962)

* Dashboard - Add disabled option to details state
This commit is contained in:
Alex
2024-04-25 22:36:54 -07:00
committed by GitHub
parent 64e3a6792d
commit 5eead0d88a
14 changed files with 33 additions and 20 deletions

View File

@@ -76,7 +76,7 @@
$registrations = $registration->count();
}
echo "<div style='display: flex; flex-wrap: wrap; justify-content: center; padding-bottom: 13px; background-color: ".$dashboard_number_background_color.";' onclick=\"$('#hud_switch_status_details').slideToggle('fast');\">\n";
echo "<div style='display: flex; flex-wrap: wrap; justify-content: center; padding-bottom: 13px; background-color: ".$dashboard_number_background_color.";' ".($dashboard_details_state == "disabled" ?: "onclick=\"$('#hud_switch_status_details').slideToggle('fast');\"").">\n";
echo " <span class='hud_title' style='background-color: ".$dashboard_heading_background_color."; color: ".$dashboard_heading_text_color.";'>".$text['label-switch_status']."</span>\n";
if ($dashboard_chart_type == "doughnut") {