mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 22:12:23 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user