From e16f3356b0b2fee19a2e5fcd946f433a268d3cb9 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 16 Dec 2019 14:29:32 +0100 Subject: [PATCH] Use DowntimeList in downtime detail --- application/controllers/DowntimeController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/DowntimeController.php b/application/controllers/DowntimeController.php index 029ea6bb..1acf73a4 100644 --- a/application/controllers/DowntimeController.php +++ b/application/controllers/DowntimeController.php @@ -6,9 +6,9 @@ use Icinga\Exception\NotFoundError; use Icinga\Module\Icingadb\Common\CommandActions; use Icinga\Module\Icingadb\Common\Links; use Icinga\Module\Icingadb\Model\Downtime; -use Icinga\Module\Icingadb\Model\Host; use Icinga\Module\Icingadb\Web\Controller; use Icinga\Module\Icingadb\Widget\Detail\DowntimeDetail; +use Icinga\Module\Icingadb\Widget\DowntimeList; class DowntimeController extends Controller { @@ -39,11 +39,11 @@ class DowntimeController extends Controller public function indexAction() { - $downtimeDetail = new DowntimeDetail($this->downtime); + $detail = new DowntimeDetail($this->downtime); - $this->addControl($downtimeDetail->getControl()); + $this->addControl((new DowntimeList([$this->downtime]))->setViewMode('minimal')->setCaptionDisabled()); - $this->addContent($downtimeDetail); + $this->addContent($detail); $this->setAutorefreshInterval(10); }