= $this->qlink(
diff --git a/library/Icinga/Web/Widget/Dashboard.php b/library/Icinga/Web/Widget/Dashboard.php
index 415a08857..ab47afb3f 100644
--- a/library/Icinga/Web/Widget/Dashboard.php
+++ b/library/Icinga/Web/Widget/Dashboard.php
@@ -201,12 +201,6 @@ class Dashboard extends AbstractWidget
{
/** @var $pane Pane */
foreach ($panes as $pane) {
- if ($pane->getDisabled()) {
- if ($this->hasPane($pane->getTitle()) === true) {
- $this->removePane($pane->getTitle());
- }
- continue;
- }
if ($this->hasPane($pane->getTitle()) === true) {
/** @var $current Pane */
$current = $this->panes[$pane->getName()];
@@ -231,6 +225,9 @@ class Dashboard extends AbstractWidget
$this->tabs = new Tabs();
foreach ($this->panes as $key => $pane) {
+ if ($pane->getDisabled()) {
+ continue;
+ }
$this->tabs->add(
$key,
array(
diff --git a/library/Icinga/Web/Widget/Dashboard/Pane.php b/library/Icinga/Web/Widget/Dashboard/Pane.php
index 587ea3a90..f323a613b 100644
--- a/library/Icinga/Web/Widget/Dashboard/Pane.php
+++ b/library/Icinga/Web/Widget/Dashboard/Pane.php
@@ -40,7 +40,7 @@ class Pane extends UserWidget
*
* @var bool
*/
- private $disabled;
+ private $disabled = false;
/**
* Create a new pane
|