mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-26 11:19:14 +02:00
DashboardsController: Load all dashboard homes in the index action
This commit is contained in:
parent
641e3042b3
commit
474a26b1eb
@ -46,7 +46,9 @@ class DashboardsController extends CompatController
|
|||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
$pane = $this->getParam('pane');
|
$pane = $this->getParam('pane');
|
||||||
$this->dashboard->load(DashboardHome::DEFAULT_HOME, $pane);
|
|
||||||
|
// If we don't load all dashboard homes here, the cog icon won't be rendered in the dashboard tabs
|
||||||
|
$this->dashboard->load(DashboardHome::DEFAULT_HOME, $pane, true);
|
||||||
|
|
||||||
$activeHome = $this->dashboard->getActiveHome();
|
$activeHome = $this->dashboard->getActiveHome();
|
||||||
if (! $activeHome || ! $activeHome->hasEntries()) {
|
if (! $activeHome || ! $activeHome->hasEntries()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user