From ad7479b1675758ac389e0f5b94b922a435e03db5 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Sat, 11 Oct 2025 11:25:42 +0200 Subject: [PATCH] fix: set cloud-init script dropdown to empty by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove 'selected' and 'disabled' attributes from the placeholder option to ensure the dropdown shows "Load saved script..." by default instead of appearing to select the first script. When selected_cloud_init_script_id is null, the empty option will be shown. The updatedSelectedCloudInitScriptId() method already handles empty string values correctly by checking if ($value). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../livewire/server/new/by-hetzner.blade.php | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/resources/views/livewire/server/new/by-hetzner.blade.php b/resources/views/livewire/server/new/by-hetzner.blade.php index 9df8ccea6..63f420f3f 100644 --- a/resources/views/livewire/server/new/by-hetzner.blade.php +++ b/resources/views/livewire/server/new/by-hetzner.blade.php @@ -18,7 +18,8 @@
- + Continue
@@ -48,8 +49,7 @@
- + @foreach ($locations as $location)
- + @@ -111,8 +111,7 @@ class="p-4 border border-yellow-500 dark:border-yellow-600 rounded bg-yellow-50

No private keys found. You need to create a private key to continue.

- +
@@ -158,11 +157,10 @@ class="p-4 border border-yellow-500 dark:border-yellow-600 rounded bg-yellow-50
- + @if ($saved_cloud_init_scripts->count() > 0) - - + + @foreach ($saved_cloud_init_scripts as $script) @endforeach @@ -194,4 +192,4 @@ class="p-4 border border-yellow-500 dark:border-yellow-600 rounded bg-yellow-50 @endif @endif @endif -
+
\ No newline at end of file