parent
8c3dbb2b45
commit
5ace5fd2dc
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue