From b63604667228e08d4f733319b9e5a9f498c055be Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Sat, 22 Feb 2025 21:31:24 +0100 Subject: [PATCH] Fix health color for target pools with single target that is down Signed-off-by: Julius Volz --- web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx b/web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx index 1e29c568e1..80eb58540c 100644 --- a/web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx +++ b/web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx @@ -54,7 +54,7 @@ type ScrapePools = { }; const poolPanelHealthClass = (pool: ScrapePool) => - pool.count > 1 && pool.downCount === pool.count + pool.count > 0 && pool.downCount === pool.count ? panelClasses.panelHealthErr : pool.downCount >= 1 ? panelClasses.panelHealthWarn