Fixed incorrect component not found string

This commit is contained in:
snipe 2018-02-22 16:36:01 -08:00
parent e3144c3093
commit 236e773438

View file

@ -194,7 +194,7 @@ class ComponentsController extends Controller
public function destroy($componentId)
{
if (is_null($component = Component::find($componentId))) {
return redirect()->route('components.index')->with('error', trans('admin/components/message.not_found'));
return redirect()->route('components.index')->with('error', trans('admin/components/message.does_not_exist'));
}
$this->authorize('delete', $component);