mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
Do not show Backend select item when monitoring module is disabled
This commit is contained in:
parent
6c2e1cfa0a
commit
a7b86f956c
1 changed files with 12 additions and 10 deletions
|
|
@ -51,6 +51,7 @@ class BpConfigForm extends BpConfigBaseForm
|
|||
'rows' => 4,
|
||||
));
|
||||
|
||||
if (! empty($this->listAvailableBackends())) {
|
||||
$this->addElement('select', 'Backend', array(
|
||||
'label' => $this->translate('Backend'),
|
||||
'description' => $this->translate(
|
||||
|
|
@ -61,6 +62,7 @@ class BpConfigForm extends BpConfigBaseForm
|
|||
null => $this->translate('Use the configured default backend'),
|
||||
) + $this->listAvailableBackends()
|
||||
));
|
||||
}
|
||||
|
||||
$this->addElement('select', 'Statetype', array(
|
||||
'label' => $this->translate('State Type'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue