Skip to content

Commit 723e34a

Browse files
committed
redirect to allocation tab when created
1 parent abac9b5 commit 723e34a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1010

1111
### Changed
1212
* Prevent clicking server start button until server is completely off, not just stopping.
13+
* Upon successful creation of a node it will redirect to the allocation tab and display a clearer message to add allocations.
1314

1415
### Fixed
1516
* Team Fortress named 'Insurgency' in panel in database seeder. ([#96](https://github.com/Pterodactyl/Panel/issues/96), PR by [@MeltedLux](https://github.com/MeltedLux))

app/Http/Controllers/Admin/NodesController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ public function postNew(Request $request)
7777
$new = $node->create($request->except([
7878
'_token'
7979
]));
80-
Alert::success('Successfully created new node. You should allocate some IP addresses to it now.')->flash();
80+
Alert::success('Successfully created new node. <strong>Before you can add any servers you need to first assign some IP addresses and ports.</strong>')->flash();
8181
return redirect()->route('admin.nodes.view', [
82-
'id' => $new
82+
'id' => $new,
83+
'tab' => 'tab_allocation'
8384
]);
8485
} catch (DisplayValidationException $e) {
8586
return redirect()->route('admin.nodes.new')->withErrors(json_decode($e->getMessage()))->withInput();

0 commit comments

Comments
 (0)