From d85cca3ace529abdfa09b90aed2ef04627cfb7ff Mon Sep 17 00:00:00 2001 From: rcourtman Date: Wed, 24 Dec 2025 19:42:41 +0000 Subject: [PATCH] fix: Host Agents alert toggle button not working. Fixes #893 The toggleDisabled function was missing hostAgentsWithOverrides() in the allResources array and 'hostAgent' in the allowed resource types check, causing the toggle button to silently return without doing anything. --- frontend-modern/src/components/Alerts/ThresholdsTable.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx index e8e77db9f..d7b109e90 100644 --- a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx +++ b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx @@ -1926,6 +1926,7 @@ export function ThresholdsTable(props: ThresholdsTableProps) { ...allDockerContainers, ...storageWithOverrides(), ...pbsServersWithOverrides(), + ...hostAgentsWithOverrides(), ]; const resource = allResources.find((r) => r.id === resourceId); if ( @@ -1933,7 +1934,8 @@ export function ThresholdsTable(props: ThresholdsTableProps) { (resource.type !== 'guest' && resource.type !== 'storage' && resource.type !== 'pbs' && - resource.type !== 'dockerContainer') + resource.type !== 'dockerContainer' && + resource.type !== 'hostAgent') ) return;