Fix border color for target pools with one target that is failing

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2024-09-11 10:23:57 +02:00
parent 50cd453c8f
commit dfec29d8e5

View file

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