Skip to content

Commit

Permalink
Change the missing order of handled state icons
Browse files Browse the repository at this point in the history
ref #635
  • Loading branch information
sukhwinder33445 committed Jun 5, 2023
1 parent 1b4b85b commit f597a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Icingadb/Widget/ItemTable/StateRowItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ abstract class StateRowItem extends BaseRowItem
protected function getHandledIcon(): Icon
{
switch (true) {
case $this->item->state->is_acknowledged:
return new Icon(Icons::IS_ACKNOWLEDGED);
case $this->item->state->in_downtime:
return new Icon(
Icons::IN_DOWNTIME,
Expand All @@ -41,8 +43,6 @@ protected function getHandledIcon(): Icon
t('handled by Downtime')
)]
);
case $this->item->state->is_acknowledged:
return new Icon(Icons::IS_ACKNOWLEDGED);
case $this->item->state->is_flapping:
return new Icon(Icons::IS_FLAPPING);
default:
Expand Down

0 comments on commit f597a28

Please sign in to comment.