From 99fa1fdf4e1be57792f50907147781d12009b32b Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 3 Aug 2017 06:22:35 -0400 Subject: [PATCH] mgr/dashboard: remove blue highlight on scrubbing pg states This was kind of unnecessary, highlighting a completely normal and healthy situation in a different colour. The blue was also really hard to read against a grey background. Signed-off-by: John Spray --- src/pybind/mgr/dashboard/health.html | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/src/pybind/mgr/dashboard/health.html b/src/pybind/mgr/dashboard/health.html index 38a8550a769..e61c8ef92db 100644 --- a/src/pybind/mgr/dashboard/health.html +++ b/src/pybind/mgr/dashboard/health.html @@ -81,26 +81,15 @@ }; rivets.formatters.pg_status_style = function(pg_status) { - var unhealthy = false; - var scrubbing = false; $.each(pg_status, function(state, count) { - if (state == "active+clean") { - - } else if (state == "active+clean+scrubbing" - || state == "active+clean+scrubbing+deep") { - scrubbing = true; + if (state == "active+clean" + || state == "active+clean+scrubbing" + || state == "active+clean+scrubbing+deep") { + return "color: #00bb00"; } else { - unhealthy = true; + return "color: #FFC200"; } }); - - if (unhealthy) { - return "color: #FFC200"; - } else if (scrubbing) { - return "color: #0000bb"; - } else { - return "color: #00bb00"; - } }; rivets.formatters.pg_status = function(pg_status) { -- 2.39.5