mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
ServiceController: Implement method getCommandTargetsUrl()
This commit is contained in:
parent
24223b950e
commit
67bb5f2685
1 changed files with 9 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue