Redirect user to node allocation view after creation, closes #535

This commit is contained in:
Joost Kwakkel 2017-07-08 18:14:54 +02:00
parent 99eead0695
commit a1376db4fd

View file

@ -94,9 +94,9 @@ class NodesController extends Controller
'daemonBase', 'daemonSFTP', 'daemonListen',
])
));
Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. <strong>Before you can add any servers you need to first assign some IP addresses and ports.</strong>')->flash();
Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. <strong>Before you can add any servers you need to first assign some IP addresses and ports by adding an allocation.</strong>')->flash();
return redirect()->route('admin.nodes.view', $node->id);
return redirect()->route('admin.nodes.view.allocation', $node->id);
} catch (DisplayValidationException $e) {
return redirect()->route('admin.nodes.new')->withErrors(json_decode($e->getMessage()))->withInput();
} catch (DisplayException $e) {