From b31b080799fb85aa8d222263466b79b7d6777974 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Sat, 11 Oct 2025 12:37:12 +0200 Subject: [PATCH] fix: reset cloud-init fields when closing server creation modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add cloud-init script fields to the resetSelection() method that's called when the modal is closed. This ensures a clean slate when reopening the "Connect a Hetzner Server" view. Fields reset: - cloud_init_script - save_cloud_init_script - cloud_init_script_name - selected_cloud_init_script_id 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/Livewire/Server/New/ByHetzner.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Livewire/Server/New/ByHetzner.php b/app/Livewire/Server/New/ByHetzner.php index 284e5e790..7d828b12e 100644 --- a/app/Livewire/Server/New/ByHetzner.php +++ b/app/Livewire/Server/New/ByHetzner.php @@ -103,6 +103,10 @@ public function resetSelection() { $this->selected_token_id = null; $this->current_step = 1; + $this->cloud_init_script = null; + $this->save_cloud_init_script = false; + $this->cloud_init_script_name = null; + $this->selected_cloud_init_script_id = null; } public function loadTokens()