show ignored device up when up (#15283)

* show ignored device up when up

* change status string
This commit is contained in:
SourceDoctor
2023-09-05 18:04:16 +02:00
committed by GitHub
parent 6d1b1ac1fa
commit 35ff23b39f

View File

@@ -248,7 +248,11 @@ class AvailabilityMapController extends WidgetController
}
if ($device->ignore) {
return ['ignored', 'label-default'];
if (($device->status == 1) && ($device->uptime != 0)) {
return ['ignored-up', 'label-success'];
}
return ['ignored-down', 'label-default'];
}
if ($device->status == 1) {