refactor: enable cloud-init save checkbox at all times with backend validation
Remove the disabled state from the save checkbox to allow users to check it at any time. The backend already validates that cloud_init_script is not empty before saving (line 499 in ByHetzner.php), so empty/null scripts will simply not be saved even if the checkbox is checked. This improves UX by making the checkbox always interactive while maintaining data integrity through backend validation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
05bd57ed51
commit
e4bf8ab337
1 changed files with 1 additions and 2 deletions
|
|
@ -175,8 +175,7 @@ class="p-4 border border-yellow-500 dark:border-yellow-600 rounded bg-yellow-50
|
|||
|
||||
<div class="flex flex-col gap-2">
|
||||
<x-forms.checkbox id="save_cloud_init_script" label="Save this script for later use"
|
||||
helper="Save this cloud-init script to your team's library for reuse"
|
||||
:disabled="empty($cloud_init_script)" />
|
||||
helper="Save this cloud-init script to your team's library for reuse" />
|
||||
|
||||
@if ($save_cloud_init_script)
|
||||
<div class="flex flex-col gap-2 ml-6">
|
||||
|
|
|
|||
Loading…
Reference in a new issue