From: John Spray Date: Thu, 3 Aug 2017 10:22:35 +0000 (-0400) Subject: mgr/dashboard: remove blue highlight on scrubbing pg states X-Git-Tag: v13.0.1~332^2~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=99fa1fdf4e1be57792f50907147781d12009b32b;p=ceph.git 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 --- diff --git a/src/pybind/mgr/dashboard/health.html b/src/pybind/mgr/dashboard/health.html index 38a8550a7691e..e61c8ef92db66 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) {