Merge pull request #288 from cachethq/delete-component-group

Allow deleting of a component group. Closes #286
This commit is contained in:
Graham Campbell
2015-01-06 20:59:13 +00:00
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.
*