diff --git a/app/Http/Livewire/Server/New/ByIp.php b/app/Http/Livewire/Server/New/ByIp.php index de2223d6a..b99121a40 100644 --- a/app/Http/Livewire/Server/New/ByIp.php +++ b/app/Http/Livewire/Server/New/ByIp.php @@ -29,6 +29,9 @@ class ByIp extends Component public function mount() { $this->name = generateRandomName(); + if ($this->private_keys->count() > 0) { + $this->private_key_id = $this->private_keys->first()->id; + } } public function setPrivateKey(string $private_key_id) { diff --git a/database/migrations/2023_03_24_140712_create_server_settings_table.php b/database/migrations/2023_03_24_140712_create_server_settings_table.php index 4d16ef64d..ed2e6d122 100644 --- a/database/migrations/2023_03_24_140712_create_server_settings_table.php +++ b/database/migrations/2023_03_24_140712_create_server_settings_table.php @@ -14,6 +14,7 @@ return new class extends Migration Schema::create('server_settings', function (Blueprint $table) { $table->id(); $table->string('uuid')->unique(); + $table->boolean('is_jump_server')->default(false); $table->boolean('is_build_server')->default(false); $table->boolean('is_validated')->default(false); diff --git a/resources/views/components/magic-bar.blade.php b/resources/views/components/magic-bar.blade.php index 12fa02648..e1fac8f3b 100644 --- a/resources/views/components/magic-bar.blade.php +++ b/resources/views/components/magic-bar.blade.php @@ -166,6 +166,30 @@ + {{-- Private Keys --}} +