From dfec29d8e5bd1036323da08f5193a804cf76df11 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Wed, 11 Sep 2024 10:23:57 +0200 Subject: [PATCH] Fix border color for target pools with one target that is failing 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 8790f4522..a6ede2c4c 100644 --- a/web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx +++ b/web/ui/mantine-ui/src/pages/targets/ScrapePoolsList.tsx @@ -53,7 +53,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