mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
Host/ObjectController: no sets in branches
This commit is contained in:
parent
60104327bf
commit
7f22c12f9f
@ -119,6 +119,10 @@ class HostController extends ObjectController
|
|||||||
$host = $this->getHostObject();
|
$host = $this->getHostObject();
|
||||||
$this->addServicesHeader();
|
$this->addServicesHeader();
|
||||||
$this->addTitle($this->translate('Add Service Set to %s'), $host->getObjectName());
|
$this->addTitle($this->translate('Add Service Set to %s'), $host->getObjectName());
|
||||||
|
if ($this->showNotInBranch($this->translate('Creating Service Sets'))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->content()->add(
|
$this->content()->add(
|
||||||
IcingaServiceSetForm::load()
|
IcingaServiceSetForm::load()
|
||||||
->setHost($host)
|
->setHost($host)
|
||||||
|
@ -130,6 +130,12 @@ abstract class ObjectController extends ActionController
|
|||||||
if ($oType = $this->params->get('type', 'object')) {
|
if ($oType = $this->params->get('type', 'object')) {
|
||||||
$form->setPreferredObjectType($oType);
|
$form->setPreferredObjectType($oType);
|
||||||
}
|
}
|
||||||
|
if ($this->getTableName() === 'icinga_service_set'
|
||||||
|
&& $this->showNotInBranch($this->translate('Creating Service Sets'))
|
||||||
|
) {
|
||||||
|
$this->addTitle($this->translate('Create a new Service Set'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($oType === 'template') {
|
if ($oType === 'template') {
|
||||||
if ($this->showNotInBranch($this->translate('Creating Templates'))) {
|
if ($this->showNotInBranch($this->translate('Creating Templates'))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user