mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-24 00:29:47 -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,16 +51,18 @@ class BpConfigForm extends BpConfigBaseForm
|
||||||
'rows' => 4,
|
'rows' => 4,
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->addElement('select', 'Backend', array(
|
if (! empty($this->listAvailableBackends())) {
|
||||||
'label' => $this->translate('Backend'),
|
$this->addElement('select', 'Backend', array(
|
||||||
'description' => $this->translate(
|
'label' => $this->translate('Backend'),
|
||||||
'Icinga Web Monitoring Backend where current object states for'
|
'description' => $this->translate(
|
||||||
. ' this process should be retrieved from'
|
'Icinga Web Monitoring Backend where current object states for'
|
||||||
),
|
. ' this process should be retrieved from'
|
||||||
'multiOptions' => array(
|
),
|
||||||
null => $this->translate('Use the configured default backend'),
|
'multiOptions' => array(
|
||||||
) + $this->listAvailableBackends()
|
null => $this->translate('Use the configured default backend'),
|
||||||
));
|
) + $this->listAvailableBackends()
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
$this->addElement('select', 'Statetype', array(
|
$this->addElement('select', 'Statetype', array(
|
||||||
'label' => $this->translate('State Type'),
|
'label' => $this->translate('State Type'),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue