mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
parent
d06ce98d2f
commit
81a3be74f3
@ -147,15 +147,17 @@ class Dashboard extends AbstractWidget
|
|||||||
if ($dashboardPane !== null) {
|
if ($dashboardPane !== null) {
|
||||||
$key = $dashboardPane->getLabel();
|
$key = $dashboardPane->getLabel();
|
||||||
}
|
}
|
||||||
|
$pane = null;
|
||||||
if ($this->hasPane($key)) {
|
if ($this->hasPane($key)) {
|
||||||
$panes[$key] = $this->getPane($key);
|
$pane = $this->getPane($key);
|
||||||
} else {
|
} else {
|
||||||
$panes[$key] = new Pane($key);
|
$pane = new Pane($key);
|
||||||
|
$panes[$key] = $pane;
|
||||||
$panes[$key]->setTitle($part->title);
|
$panes[$key]->setTitle($part->title);
|
||||||
}
|
}
|
||||||
$panes[$key]->setUserWidget();
|
$pane->setUserWidget();
|
||||||
if ((bool) $part->get('disabled', false) === true) {
|
if ((bool) $part->get('disabled', false) === true) {
|
||||||
$panes[$key]->setDisabled();
|
$pane->setDisabled();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
list($paneName, $dashletName) = explode('.', $key, 2);
|
list($paneName, $dashletName) = explode('.', $key, 2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user