mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 10:57:40 +02:00
Fix code styling issue
This commit is contained in:
parent
372ffa15c0
commit
1429d4aa65
@ -20,7 +20,7 @@ abstract class BaseSetupDashboard extends BaseDashboardForm
|
|||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
static protected $moduleDashlets = [];
|
protected static $moduleDashlets = [];
|
||||||
|
|
||||||
protected $duplicateCustomDashlet = false;
|
protected $duplicateCustomDashlet = false;
|
||||||
|
|
||||||
@ -64,7 +64,10 @@ abstract class BaseSetupDashboard extends BaseDashboardForm
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($choosenDashlets[$module]) && ! $this->duplicateCustomDashlet) {
|
if (isset($choosenDashlets[$module]) && ! $this->duplicateCustomDashlet) {
|
||||||
$this->duplicateCustomDashlet = array_key_exists($this->getPopulatedValue('dashlet'), $choosenDashlets[$module]);
|
$this->duplicateCustomDashlet = array_key_exists(
|
||||||
|
$this->getPopulatedValue('dashlet'),
|
||||||
|
$choosenDashlets[$module]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,7 +128,8 @@ abstract class BaseSetupDashboard extends BaseDashboardForm
|
|||||||
foreach ($dashlets as $dashlet) {
|
foreach ($dashlets as $dashlet) {
|
||||||
$multi = new DashletListMultiSelect($dashlet);
|
$multi = new DashletListMultiSelect($dashlet);
|
||||||
$multi->setCheckBox($this->createElement(
|
$multi->setCheckBox($this->createElement(
|
||||||
'checkbox', $module . '|' . $dashlet->getName(),
|
'checkbox',
|
||||||
|
$module . '|' . $dashlet->getName(),
|
||||||
['class' => 'sr-only']
|
['class' => 'sr-only']
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -146,7 +150,7 @@ abstract class BaseSetupDashboard extends BaseDashboardForm
|
|||||||
$this->addElement('text', 'pane', [
|
$this->addElement('text', 'pane', [
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'label' => t('Dashboard Title'),
|
'label' => t('Dashboard Title'),
|
||||||
'description' => t('Enter a title for the new dashboard you want to add the dashlets to'),
|
'description' => t('Enter a title for the new dashboard you want to add the dashlets to')
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user