added diag content
This commit is contained in:
@ -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 = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user