Dashboard - Added chart cutout and text size default settings (#6976)

This commit is contained in:
Alex
2024-05-13 13:20:33 -07:00
committed by GitHub
parent 2d3dca985d
commit 98d5e4fd67
8 changed files with 71 additions and 47 deletions

View File

@@ -55,7 +55,7 @@
echo "<div class='hud_container' ".($dashboard_details_state == "disabled" ?: "onclick=\"$('#hud_voicemail_details').slideToggle('fast'); toggle_grid_row_end('".$dashboard_name."')\"").">\n";
echo " <span class='hud_title' onclick=\"document.location.href='".PROJECT_PATH."/app/voicemails/voicemail_messages.php'\">".$text['label-new_messages']."</span>";
if ($dashboard_chart_type == "doughnut") {
if ($row['dashboard_chart_type'] == "doughnut") {
//add doughnut chart
?>
<div class='hud_chart'><canvas id='new_messages_chart'></canvas></div>
@@ -100,7 +100,7 @@
</script>
<?php
}
if ($dashboard_chart_type == "none") {
if ($row['dashboard_chart_type'] == "none" || !isset($row['dashboard_chart_type'])) {
echo " <span class='hud_stat'>".$messages['new']."</span>";
}
echo "</div>\n";