mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 03:04:03 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user