mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +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();
|
||||
$this->addServicesHeader();
|
||||
$this->addTitle($this->translate('Add Service Set to %s'), $host->getObjectName());
|
||||
if ($this->showNotInBranch($this->translate('Creating Service Sets'))) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->content()->add(
|
||||
IcingaServiceSetForm::load()
|
||||
->setHost($host)
|
||||
|
@ -130,6 +130,12 @@ abstract class ObjectController extends ActionController
|
||||
if ($oType = $this->params->get('type', 'object')) {
|
||||
$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 ($this->showNotInBranch($this->translate('Creating Templates'))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user