From efb6576023afc1f385ffcd4c74f76fa83e0991b6 Mon Sep 17 00:00:00 2001 From: jamesread Date: Wed, 11 Sep 2024 23:34:08 +0100 Subject: [PATCH] Add severe severity (!) --- webui/css/style.css | 4 ++++ webui/js/main.js | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/webui/css/style.css b/webui/css/style.css index e263ae0..f011b90 100644 --- a/webui/css/style.css +++ b/webui/css/style.css @@ -30,6 +30,10 @@ div.alert.critical { background-color: salmon; } +div.alert.severe { + background-color: sandybrown; +} + div.alert.info { background-color: lightblue; } diff --git a/webui/js/main.js b/webui/js/main.js index 1a3e65b..4e8304e 100644 --- a/webui/js/main.js +++ b/webui/js/main.js @@ -67,12 +67,15 @@ function renderAlert (alert) { case 'critical': alertElement.style.order = '1' break - case 'warning': + case 'severe': alertElement.style.order = '2' break - case 'info': + case 'warning': alertElement.style.order = '3' break + case 'info': + alertElement.style.order = '4' + break default: alertElement.style.order = '5' }