mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 10:57:40 +02:00
Always load dashlets for all of the dashboard pane & activate only the given| the first one
This commit is contained in:
parent
56bfe76a84
commit
a118831b38
@ -136,10 +136,8 @@ class Dashboard extends BaseHtmlElement implements DashboardEntry
|
||||
$this->tabs->add(
|
||||
$pane->getName(),
|
||||
[
|
||||
'title' => sprintf(
|
||||
t('Show %s', 'dashboard.pane.tooltip'),
|
||||
$pane->getTitle()
|
||||
),
|
||||
'active' => $pane->isActive(),
|
||||
'title' => sprintf(t('Show %s', 'dashboard.pane.tooltip'), $pane->getTitle()),
|
||||
'label' => $pane->getTitle(),
|
||||
'url' => clone($url),
|
||||
'urlParams' => [$this->tabParam => $pane->getName()]
|
||||
|
@ -164,6 +164,7 @@ class DashboardHome extends BaseDashboard implements Sortable
|
||||
->setPriority($pane->priority);
|
||||
|
||||
$this->addEntry($newPane);
|
||||
$newPane->loadDashboardEntries();
|
||||
}
|
||||
|
||||
if ($name !== null) {
|
||||
@ -171,13 +172,11 @@ class DashboardHome extends BaseDashboard implements Sortable
|
||||
$pane = $this->getEntry($name);
|
||||
|
||||
$this->activatePane($pane);
|
||||
$pane->loadDashboardEntries();
|
||||
} else {
|
||||
throw new HttpNotFoundException(t('Pane "%s" not found'), $name);
|
||||
}
|
||||
} elseif (($firstPane = $this->rewindEntries())) {
|
||||
$this->activatePane($firstPane);
|
||||
$firstPane->loadDashboardEntries();
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user