Allow component groups to be collapsed by default. Closes #1398

This commit is contained in:
James Brooks
2016-01-29 16:02:14 +00:00
parent d907d1eecc
commit da7af1fca0
16 changed files with 141 additions and 34 deletions

View File

@@ -56,7 +56,8 @@ class ComponentGroupController extends AbstractApiController
try {
$group = dispatch(new AddComponentGroupCommand(
Binput::get('name'),
Binput::get('order', 0)
Binput::get('order', 0),
Binput::get('collapsed')
));
} catch (QueryException $e) {
throw new BadRequestHttpException();
@@ -78,7 +79,8 @@ class ComponentGroupController extends AbstractApiController
$group = dispatch(new UpdateComponentGroupCommand(
$group,
Binput::get('name'),
Binput::get('order', 0)
Binput::get('order', 0),
Binput::get('collapsed')
));
} catch (QueryException $e) {
throw new BadRequestHttpException();