mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
ObjectController: fix usage link
This commit is contained in:
parent
15a8886db7
commit
35acda4865
@ -237,11 +237,15 @@ abstract class ObjectController extends ActionController
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return $this
|
||||||
|
* @throws NotFoundError
|
||||||
|
*/
|
||||||
protected function addActionUsage()
|
protected function addActionUsage()
|
||||||
{
|
{
|
||||||
$type = $this->getType();
|
$type = $this->getType();
|
||||||
$object = $this->requireObject();
|
$object = $this->requireObject();
|
||||||
if ($object->isTemplate() && ! $type === 'serviceSet') {
|
if ($object->isTemplate() && $type !== 'serviceSet') {
|
||||||
$this->actions()->add([
|
$this->actions()->add([
|
||||||
Link::create(
|
Link::create(
|
||||||
$this->translate('Usage'),
|
$this->translate('Usage'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user