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:
rcourtman
2025-12-26 09:51:53 +00:00
parent 9b7b787652
commit 46959aec59
@@ -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,