From 46959aec595329a545a0863464626a47a7e198c6 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Fri, 26 Dec 2025 09:51:53 +0000 Subject: [PATCH] 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 --- frontend-modern/src/components/Alerts/ThresholdsTable.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx index fd475c23d5..da225b07c2 100644 --- a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx +++ b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx @@ -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,