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
modules/monitoring/application/views/scripts/list
|
@ -41,7 +41,7 @@ if ($hosts->count() === 0) {
|
|||
$icons[] = $this->icon('unhandled.png', 'Unhandled');
|
||||
}
|
||||
|
||||
if ($host->host_acknowledged && !$host->host_in_downtime) {
|
||||
if ($host->host_acknowledged) {
|
||||
$icons[] = $this->icon('acknowledgement.png', 'Acknowledged');
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ if ($hosts->count() === 0) {
|
|||
$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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue