Fixes issue #1158
This commit is contained in:
@@ -194,7 +194,7 @@ class ComponentController extends Controller
|
||||
|
||||
$component->tags()->sync($componentTags);
|
||||
|
||||
return Redirect::route('dashboard.components.add')
|
||||
return Redirect::route('dashboard.components.index')
|
||||
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.add.success')));
|
||||
}
|
||||
|
||||
@@ -209,7 +209,8 @@ class ComponentController extends Controller
|
||||
{
|
||||
$this->dispatch(new RemoveComponentCommand($component));
|
||||
|
||||
return Redirect::route('dashboard.components.index');
|
||||
return Redirect::route('dashboard.components.index')
|
||||
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.delete.success')));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -223,7 +224,8 @@ class ComponentController extends Controller
|
||||
{
|
||||
$this->dispatch(new RemoveComponentGroupCommand($group));
|
||||
|
||||
return Redirect::route('dashboard.components.index');
|
||||
return Redirect::route('dashboard.components.index')
|
||||
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.delete.success')));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -270,7 +272,7 @@ class ComponentController extends Controller
|
||||
->withErrors($e->getMessageBag());
|
||||
}
|
||||
|
||||
return Redirect::route('dashboard.components.groups.add')
|
||||
return Redirect::route('dashboard.components.groups')
|
||||
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.groups.add.success')));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user