Allow deleting of a component group. Closes #286

This commit is contained in:
James Brooks
2015-01-05 15:21:09 +00:00
committed by James Brooks
parent 0d326de0b2
commit 2af867b863
7 changed files with 35 additions and 7 deletions

View File

@@ -144,6 +144,20 @@ class DashComponentController extends Controller
return Redirect::back();
}
/**
* Deletes a given component group.
*
* @param \CachetHQ\Cachet\Models\ComponentGroup $group
*
* @return \Illuminate\Http\RedirectResponse
*/
public function deleteComponentGroupAction(ComponentGroup $group)
{
$group->delete();
return Redirect::back();
}
/**
* Shows the add component group view.
*