Merge branch 'develop' of https://github.com/Pterodactyl/Panel into develop

This commit is contained in:
Dane Everitt 2017-09-22 00:30:11 -05:00
commit 68cc71ecfe
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
14 changed files with 72 additions and 53 deletions

View file

@ -30,6 +30,11 @@ use Illuminate\Contracts\Config\Repository as ConfigRepository;
class InfoCommand extends Command
{
/**
* @var string
*/
protected $description = 'Displays the application, database, and email configurations along with the panel version.';
/**
* @var \Illuminate\Contracts\Config\Repository
*/

View file

@ -35,6 +35,11 @@ class DeleteLocationCommand extends Command
*/
protected $deletionService;
/**
* @var string
*/
protected $description = 'Deletes a location from the Panel.';
/**
* @var \Illuminate\Support\Collection
*/

View file

@ -34,6 +34,11 @@ class MakeUserCommand extends Command
*/
protected $creationService;
/**
* @var string
*/
protected $description = 'Creates a user on the system via the CLI.';
/**
* @var string
*/

View file

@ -226,6 +226,13 @@ class ServersController extends Controller
*/
public function create()
{
$nodes = $this->nodeRepository->all();
if (count($nodes) < 1) {
$this->alert->warning(trans('admin/server.alerts.node_required'))->flash();
return redirect()->route('admin.nodes');
}
$services = $this->serviceRepository->getWithOptions();
Javascript::put([

View file

@ -81,6 +81,8 @@ class Server extends Model implements CleansAttributes, ValidableContract
'disk' => 'required',
'service_id' => 'required',
'option_id' => 'required',
'node_id' => 'required',
'allocation_id' => 'required',
'pack_id' => 'sometimes',
'auto_deploy' => 'sometimes',
'custom_id' => 'sometimes',