mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-29 10:49:53 +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:
parent
0eb512f90d
commit
d85cca3ace
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue