added diag content

This commit is contained in:
jared committed 2025-02-07 21:33:55 -05:00
1 parent a35f0527e3
commit 21bd5d8dbf
3 files changed
+6 -2

No files matched your search

+2
View File
@@ -31,9 +31,11 @@ function updateSystemMetrics() {
//Metric updates like interfaces, power, and health
function updateDiagnostics() {
console.log('Updating diagnostics...');
fetch('/api/diagnostics')
.then(response => response.json())
.then(data => {
console.log('Received diagnostic data:', data);
const diagnosticsPanel = document.querySelector('.diagnostics-content');
diagnosticsPanel.innerHTML = '';