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>
<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>

View File

@ -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;
} }