mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
8c3dbb2b45
commit
5ace5fd2dc
@ -25,7 +25,7 @@
|
|||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<a href="<?= $this->href('dashboard/remove-pane', array('pane' => $pane->getName())); ?>">
|
<a href="<?= $this->href('dashboard/remove-pane', array('pane' => $pane->getName())); ?>">
|
||||||
<?= $this->icon('remove.png'); ?>
|
<?= $this->icon('cancel'); ?>
|
||||||
</a>
|
</a>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -49,7 +49,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="<?= $this->href('dashboard/remove-component', array('pane' => $pane->getName(), 'component' => $component->getTitle())); ?>">
|
<a href="<?= $this->href('dashboard/remove-component', array('pane' => $pane->getName(), 'component' => $component->getTitle())); ?>">
|
||||||
<?= $this->icon('remove.png'); ?>
|
<?= $this->icon('cancel'); ?>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -141,9 +141,11 @@ class Pane extends UserWidget
|
|||||||
if ($component->isUserWidget() === true) {
|
if ($component->isUserWidget() === true) {
|
||||||
unset($this->components[$title]);
|
unset($this->components[$title]);
|
||||||
} else {
|
} else {
|
||||||
$component->setUserWidget();
|
|
||||||
$component->setDisabled(true);
|
$component->setDisabled(true);
|
||||||
|
$component->setUserWidget();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
throw new ProgrammingError('Component does not exist: ' . $title);
|
||||||
}
|
}
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user