Skip to content

Commit

Permalink
Change the order of handled state icons
Browse files Browse the repository at this point in the history
In case of handled hosts/services acknowledged state must be give priority over downtime and downtime
should be given priority over flapping. So the order for the handled state icons  must be
acknowledged, downtime or flapping respectively.
  • Loading branch information
raviks789 authored and nilmerg committed Sep 5, 2022
1 parent bc1d71d commit d6645e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Icingadb/Widget/ItemList/StateListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ protected function createTimestamp()
protected function getHandledIcon(): string
{
switch (true) {
case $this->state->in_downtime:
return Icons::IN_DOWNTIME;
case $this->state->is_acknowledged:
return Icons::IS_ACKNOWLEDGED;
case $this->state->in_downtime:
return Icons::IN_DOWNTIME;
case $this->state->is_flapping:
return Icons::IS_FLAPPING;
default:
Expand Down

0 comments on commit d6645e8

Please sign in to comment.