Skip to content

Commit

Permalink
Add severe severity (!)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Sep 11, 2024
1 parent 368ee81 commit efb6576
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions webui/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ div.alert.critical {
background-color: salmon;
}

div.alert.severe {
background-color: sandybrown;
}

div.alert.info {
background-color: lightblue;
}
Expand Down
7 changes: 5 additions & 2 deletions webui/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit efb6576

Please sign in to comment.