fix: add missing physicalDisks handler to WebSocket store (addresses #429)

The disk monitoring backend was working but frontend wasn't updating because the WebSocket store was missing the handler for physicalDisks data. Also added physicalDisks count to broadcast logging for better debugging.
This commit is contained in:
Pulse Monitor
2025-09-08 20:17:10 +00:00
parent 6289a0b5e9
commit 55cde3edc3
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -163,6 +163,7 @@ export function createWebSocketStore(url: string) {
if (message.data.performance !== undefined) setState('performance', message.data.performance);
if (message.data.connectionHealth !== undefined) setState('connectionHealth', message.data.connectionHealth);
if (message.data.stats !== undefined) setState('stats', message.data.stats);
if (message.data.physicalDisks !== undefined) setState('physicalDisks', message.data.physicalDisks);
// Sync active alerts from state
if (message.data.activeAlerts !== undefined) {
// Received activeAlerts update
+1
View File
@@ -481,6 +481,7 @@ func (m *Monitor) Start(ctx context.Context, wsHub *websocket.Hub) {
Int("containers", len(state.Containers)).
Int("pbs", len(state.PBSInstances)).
Int("pbsBackups", len(state.PBSBackups)).
Int("physicalDisks", len(state.PhysicalDisks)).
Msg("Broadcasting state update (ticker)")
wsHub.BroadcastState(state)