host/index: Utilize widget HostMetaInfo

This commit is contained in:
Johannes Meyer 2021-05-05 17:55:44 +02:00
parent 0a5774c9dd
commit 6217d67b64

View file

@ -17,6 +17,7 @@ use Icinga\Module\Icingadb\Model\ServicestateSummary;
use Icinga\Module\Icingadb\Web\Controller;
use Icinga\Module\Icingadb\Widget\Detail\HostDetail;
use Icinga\Module\Icingadb\Widget\Detail\HostInspectionDetail;
use Icinga\Module\Icingadb\Widget\Detail\HostMetaInfo;
use Icinga\Module\Icingadb\Widget\Detail\QuickActions;
use Icinga\Module\Icingadb\Widget\DowntimeList;
use Icinga\Module\Icingadb\Widget\HostList;
@ -69,6 +70,7 @@ class HostController extends Controller
->setViewMode('minimal')
->setDetailActionsDisabled()
->setNoSubjectLink());
$this->addControl(new HostMetaInfo($this->host));
$this->addControl(new QuickActions($this->host));
$this->addContent(new HostDetail($this->host, $serviceSummary->first()));