mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 15:44:45 +02:00
Redirect user to node allocation view after creation, closes #535
This commit is contained in:
parent
99eead0695
commit
a1376db4fd
@ -94,9 +94,9 @@ class NodesController extends Controller
|
|||||||
'daemonBase', 'daemonSFTP', 'daemonListen',
|
'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) {
|
} catch (DisplayValidationException $e) {
|
||||||
return redirect()->route('admin.nodes.new')->withErrors(json_decode($e->getMessage()))->withInput();
|
return redirect()->route('admin.nodes.new')->withErrors(json_decode($e->getMessage()))->withInput();
|
||||||
} catch (DisplayException $e) {
|
} catch (DisplayException $e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user