From 67bb5f26852feef18a5d4bcba7b2483ba80eee12 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 24 Oct 2019 14:59:31 +0200 Subject: [PATCH] ServiceController: Implement method `getCommandTargetsUrl()` --- application/controllers/ServiceController.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index 28948f5b..7c68bd8c 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -7,6 +7,7 @@ use Icinga\Module\Eagle\Common\CommandActions; use Icinga\Module\Eagle\Model\Service; use Icinga\Module\Eagle\Web\Controller; use Icinga\Module\Eagle\Widget\ServiceListItem; +use ipl\Web\Url; class ServiceController extends Controller { @@ -38,6 +39,14 @@ class ServiceController extends Controller $this->service = $service; } + public function getCommandTargetsUrl() + { + return Url::fromPath('eagle/service', [ + 'name' => $this->service->name, + 'host_name' => $this->service->host->name + ]); + } + public function fetchCommandTargets() { return [$this->service];