From 723e34a7847e2f2b60b3915ab4d8cd8b37b20e08 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Thu, 29 Sep 2016 17:47:47 -0400 Subject: [PATCH] redirect to allocation tab when created --- CHANGELOG.md | 1 + app/Http/Controllers/Admin/NodesController.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 570e3fd52..438425131 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. ### Changed * Prevent clicking server start button until server is completely off, not just stopping. +* Upon successful creation of a node it will redirect to the allocation tab and display a clearer message to add allocations. ### Fixed * Team Fortress named 'Insurgency' in panel in database seeder. ([#96](https://github.com/Pterodactyl/Panel/issues/96), PR by [@MeltedLux](https://github.com/MeltedLux)) diff --git a/app/Http/Controllers/Admin/NodesController.php b/app/Http/Controllers/Admin/NodesController.php index e574a68f1..75ed5043a 100644 --- a/app/Http/Controllers/Admin/NodesController.php +++ b/app/Http/Controllers/Admin/NodesController.php @@ -77,9 +77,10 @@ class NodesController extends Controller $new = $node->create($request->except([ '_token' ])); - Alert::success('Successfully created new node. You should allocate some IP addresses to it now.')->flash(); + Alert::success('Successfully created new node. Before you can add any servers you need to first assign some IP addresses and ports.')->flash(); return redirect()->route('admin.nodes.view', [ - 'id' => $new + 'id' => $new, + 'tab' => 'tab_allocation' ]); } catch (DisplayValidationException $e) { return redirect()->route('admin.nodes.new')->withErrors(json_decode($e->getMessage()))->withInput();