mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
list/hosts: fix downtime icon
I re-enabled host list icons, they have been missing for a while. The downtime icon logic used to be inverted, this fixes it. Also showing acknowledgements now even if object is in downtime.
This commit is contained in:
parent
ff9c29472e
commit
d44f89f287
@ -41,7 +41,7 @@ if ($hosts->count() === 0) {
|
|||||||
$icons[] = $this->icon('unhandled.png', 'Unhandled');
|
$icons[] = $this->icon('unhandled.png', 'Unhandled');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($host->host_acknowledged && !$host->host_in_downtime) {
|
if ($host->host_acknowledged) {
|
||||||
$icons[] = $this->icon('acknowledgement.png', 'Acknowledged');
|
$icons[] = $this->icon('acknowledgement.png', 'Acknowledged');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ if ($hosts->count() === 0) {
|
|||||||
$icons[] = $this->icon('notification_disabled.png', 'Notifications Disabled');
|
$icons[] = $this->icon('notification_disabled.png', 'Notifications Disabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$host->host_in_downtime) {
|
if ($host->host_in_downtime) {
|
||||||
$icons[] = $this->icon('in_downtime.png', 'In Downtime');
|
$icons[] = $this->icon('in_downtime.png', 'In Downtime');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user