From 5fe3f706afbafaf32d79c316d9721d16379b86d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 19 Apr 2017 15:43:13 -0700 Subject: [PATCH] If we only have silenced or inhibited alerts make the whole alert group green This will make the UI present inhibited alerts same way as silenced. It also drops unused fields in the model, replacing SilencedCount & UnsilencedCount with only ActiveCount --- assets/templates/alertgroup.html | 2 +- bindata_assetfs.go | 2 +- models/models.go | 11 +++++------ views.go | 6 ++++-- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/assets/templates/alertgroup.html b/assets/templates/alertgroup.html index 8ac6be5a8..3df9cf279 100644 --- a/assets/templates/alertgroup.html +++ b/assets/templates/alertgroup.html @@ -186,7 +186,7 @@