diff --git a/app/Http/Controllers/Admin/ServersController.php b/app/Http/Controllers/Admin/ServersController.php index fc19606f5..161e8aba6 100644 --- a/app/Http/Controllers/Admin/ServersController.php +++ b/app/Http/Controllers/Admin/ServersController.php @@ -376,9 +376,15 @@ class ServersController extends Controller * * @param \Pterodactyl\Models\Server $server * @return \Illuminate\View\View + * + * @throws \Pterodactyl\Exceptions\DisplayException */ public function viewManage(Server $server) { + if ($server->installed > 1) { + throw new DisplayException('This server is in a failed installation state and must be deleted and recreated.'); + } + return view('admin.servers.view.manage', ['server' => $server]); } diff --git a/resources/themes/pterodactyl/admin/servers/view/build.blade.php b/resources/themes/pterodactyl/admin/servers/view/build.blade.php index 2c5a45b60..7f39c24ca 100644 --- a/resources/themes/pterodactyl/admin/servers/view/build.blade.php +++ b/resources/themes/pterodactyl/admin/servers/view/build.blade.php @@ -30,8 +30,8 @@
  • Build Configuration
  • Startup
  • Database
  • +
  • Manage
  • @endif -
  • Manage
  • Delete
  • diff --git a/resources/themes/pterodactyl/admin/servers/view/database.blade.php b/resources/themes/pterodactyl/admin/servers/view/database.blade.php index 9b7c81077..25d6d1573 100644 --- a/resources/themes/pterodactyl/admin/servers/view/database.blade.php +++ b/resources/themes/pterodactyl/admin/servers/view/database.blade.php @@ -30,8 +30,8 @@
  • Build Configuration
  • Startup
  • Database
  • +
  • Manage
  • @endif -
  • Manage
  • Delete
  • diff --git a/resources/themes/pterodactyl/admin/servers/view/delete.blade.php b/resources/themes/pterodactyl/admin/servers/view/delete.blade.php index 4690e7173..ec1ccaebe 100644 --- a/resources/themes/pterodactyl/admin/servers/view/delete.blade.php +++ b/resources/themes/pterodactyl/admin/servers/view/delete.blade.php @@ -30,8 +30,8 @@
  • Build Configuration
  • Startup
  • Database
  • +
  • Manage
  • @endif -
  • Manage
  • Delete
  • diff --git a/resources/themes/pterodactyl/admin/servers/view/details.blade.php b/resources/themes/pterodactyl/admin/servers/view/details.blade.php index bd4a5aef2..a84a9144c 100644 --- a/resources/themes/pterodactyl/admin/servers/view/details.blade.php +++ b/resources/themes/pterodactyl/admin/servers/view/details.blade.php @@ -30,8 +30,8 @@
  • Build Configuration
  • Startup
  • Database
  • +
  • Manage
  • @endif -
  • Manage
  • Delete
  • diff --git a/resources/themes/pterodactyl/admin/servers/view/index.blade.php b/resources/themes/pterodactyl/admin/servers/view/index.blade.php index d3db27082..417a9e0b7 100644 --- a/resources/themes/pterodactyl/admin/servers/view/index.blade.php +++ b/resources/themes/pterodactyl/admin/servers/view/index.blade.php @@ -29,8 +29,8 @@
  • Build Configuration
  • Startup
  • Database
  • +
  • Manage
  • @endif -
  • Manage
  • Delete
  • diff --git a/resources/themes/pterodactyl/admin/servers/view/manage.blade.php b/resources/themes/pterodactyl/admin/servers/view/manage.blade.php index 7b56a8034..57319b4e2 100644 --- a/resources/themes/pterodactyl/admin/servers/view/manage.blade.php +++ b/resources/themes/pterodactyl/admin/servers/view/manage.blade.php @@ -30,8 +30,8 @@
  • Build Configuration
  • Startup
  • Database
  • +
  • Manage
  • @endif -
  • Manage
  • Delete
  • diff --git a/resources/themes/pterodactyl/admin/servers/view/startup.blade.php b/resources/themes/pterodactyl/admin/servers/view/startup.blade.php index 6bb7a5cde..590672c23 100644 --- a/resources/themes/pterodactyl/admin/servers/view/startup.blade.php +++ b/resources/themes/pterodactyl/admin/servers/view/startup.blade.php @@ -30,8 +30,8 @@
  • Build Configuration
  • Startup
  • Database
  • +
  • Manage
  • @endif -
  • Manage
  • Delete