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.
This commit is contained in:
rcourtman 2025-12-24 19:42:41 +00:00
parent 0eb512f90d
commit d85cca3ace

View file

@ -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;