Update voicemails.php (#6952)

This commit is contained in:
Alex 2024-04-18 16:11:05 -07:00 committed by GitHub
parent 808e2cbe66
commit 4e06ce8c14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 49 additions and 47 deletions

View File

@ -52,12 +52,13 @@
} }
} }
echo " <div style='display: flex; flex-wrap: wrap; justify-content: center; padding-bottom: 20px;' onclick=\"$('#hud_voicemail_details').slideToggle('fast');\">\n";
echo " <span class='hud_title' style='color: ".$dashboard_heading_text_color.";' onclick=\"document.location.href='".PROJECT_PATH."/app/voicemails/voicemail_messages.php'\">".$text['label-new_messages']."</span>";
if ($dashboard_chart_type == "doughnut") {
//add doughnut chart //add doughnut chart
?> ?>
<div style='display: flex; flex-wrap: wrap; justify-content: center; padding-bottom: 20px;' onclick="$('#hud_voicemail_details').slideToggle('fast');"> <div style='height: 143px;'><canvas id='new_messages_chart'></canvas></div>
<canvas id='new_messages_chart' width='175px' height='175px'></canvas>
</div>
<script> <script>
const new_messages_chart = new Chart( const new_messages_chart = new Chart(
@ -79,10 +80,6 @@
plugins: { plugins: {
chart_number: { chart_number: {
text: '<?php echo $messages['new']; ?>' text: '<?php echo $messages['new']; ?>'
},
title: {
text: '<?php echo $text['label-new_messages']; ?>',
color: '<?php echo $dashboard_heading_text_color; ?>'
} }
} }
}, },
@ -102,6 +99,11 @@
); );
</script> </script>
<?php <?php
}
if ($dashboard_chart_type == "none") {
echo " <span class='hud_stat' style='color: ".$dashboard_number_text_color.";' onclick=\"$('#hud_voicemail_details').slideToggle('fast');\">".$messages['new']."</span>";
}
echo " </div>\n";
echo "<div class='hud_details hud_box' id='hud_voicemail_details'>"; echo "<div class='hud_details hud_box' id='hud_voicemail_details'>";
if (sizeof($voicemails) > 0) { if (sizeof($voicemails) > 0) {