mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-12 15:28:12 +00:00
fix: Host Agent toggle visual state not updating after click
The toggle button in Alerts > Thresholds > Host Agents was working functionally (alerts were actually disabled) but the visual state wasn't updating. This was because the hostAgentsWithOverrides memo was missing the 'disabled' field in its returned Resource objects. Related to #893
This commit is contained in:
@@ -810,6 +810,7 @@ export function ThresholdsTable(props: ThresholdsTableProps) {
|
||||
hasCustomThresholds ||
|
||||
Boolean(override?.disabled) ||
|
||||
Boolean(override?.disableConnectivity),
|
||||
disabled: override?.disabled || false,
|
||||
disableConnectivity: override?.disableConnectivity || false,
|
||||
thresholds: override?.thresholds || {},
|
||||
defaults: props.hostDefaults,
|
||||
@@ -831,6 +832,7 @@ export function ThresholdsTable(props: ThresholdsTableProps) {
|
||||
instance: '',
|
||||
status: 'unknown',
|
||||
hasOverride: true,
|
||||
disabled: override.disabled || false,
|
||||
disableConnectivity: override.disableConnectivity || false,
|
||||
thresholds: override.thresholds || {},
|
||||
defaults: props.hostDefaults,
|
||||
|
||||
Reference in New Issue
Block a user