Dashboard: Change icons

refs #4537
This commit is contained in:
Marius Hein 2014-11-18 17:47:57 +01:00
parent 8c3dbb2b45
commit 5ace5fd2dc
2 changed files with 5 additions and 3 deletions

View File

@ -25,7 +25,7 @@
</th>
<th>
<a href="<?= $this->href('dashboard/remove-pane', array('pane' => $pane->getName())); ?>">
<?= $this->icon('remove.png'); ?>
<?= $this->icon('cancel'); ?>
</a>
</th>
</tr>
@ -49,7 +49,7 @@
</td>
<td>
<a href="<?= $this->href('dashboard/remove-component', array('pane' => $pane->getName(), 'component' => $component->getTitle())); ?>">
<?= $this->icon('remove.png'); ?>
<?= $this->icon('cancel'); ?>
</a>
</td>
</tr>

View File

@ -141,9 +141,11 @@ class Pane extends UserWidget
if ($component->isUserWidget() === true) {
unset($this->components[$title]);
} else {
$component->setUserWidget();
$component->setDisabled(true);
$component->setUserWidget();
}
} else {
throw new ProgrammingError('Component does not exist: ' . $title);
}
return $this;
}