Refactor button components to use Proxmox UI library
- Updated button components across various views to utilize the new Proxmox UI button structure. - Replaced instances of <x-button.primary> and <x-button.secondary> with <x-proxmox::ui.button> for consistency and improved styling. - Adjusted button attributes and loading states to align with the new component design. - Ensured that all button functionalities remain intact while enhancing the overall UI consistency.
This commit is contained in:
@@ -416,10 +416,10 @@
|
||||
</label>
|
||||
<p class="text-xs text-base/50">Pre-enroll Secure Boot keys during EFI disk creation. Enables Secure Boot by default. Useful for UEFI guests requiring Secure Boot support.</p>
|
||||
</div>
|
||||
<x-button.secondary wire:click="addEfiDisk" wire:loading.attr="disabled" class="w-full sm:w-auto">
|
||||
<x-proxmox::ui.button wire:click="addEfiDisk" wire:loading.attr="disabled" class="w-full sm:w-auto" variant="secondary">
|
||||
<x-loading target="addEfiDisk" />
|
||||
Add EFI Disk
|
||||
</x-button.secondary>
|
||||
</x-proxmox::ui.button>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@@ -530,10 +530,10 @@
|
||||
<option value="v2.0">v2.0</option>
|
||||
</select>
|
||||
</div>
|
||||
<x-button.secondary wire:click="addTpmDevice" wire:loading.attr="disabled" class="w-full sm:w-auto">
|
||||
<x-proxmox::ui.button wire:click="addTpmDevice" wire:loading.attr="disabled" class="w-full sm:w-auto" variant="secondary">
|
||||
<x-loading target="addTpmDevice" />
|
||||
Add TPM Device
|
||||
</x-button.secondary>
|
||||
</x-proxmox::ui.button>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@@ -541,17 +541,17 @@
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-2 overflow-x-auto">
|
||||
<x-button.secondary wire:click="loadSystemConfiguration" wire:loading.attr="disabled">
|
||||
<x-proxmox::ui.button wire:click="loadSystemConfiguration" wire:loading.attr="disabled" variant="secondary">
|
||||
<x-loading target="loadSystemConfiguration" />
|
||||
Refresh
|
||||
</x-button.secondary>
|
||||
<x-button.secondary wire:click="resetSystemSettings" :disabled="!$this->hasChanges">
|
||||
</x-proxmox::ui.button>
|
||||
<x-proxmox::ui.button wire:click="resetSystemSettings" :disabled="!$this->hasChanges" variant="secondary">
|
||||
Reset
|
||||
</x-button.secondary>
|
||||
<x-button.primary wire:click="saveSystemSettings" wire:loading.attr="disabled" :disabled="!$this->hasChanges">
|
||||
</x-proxmox::ui.button>
|
||||
<x-proxmox::ui.button wire:click="saveSystemSettings" wire:loading.attr="disabled" :disabled="!$this->hasChanges" variant="primary">
|
||||
<x-loading target="saveSystemSettings" />
|
||||
Save Settings
|
||||
</x-button.primary>
|
||||
</x-proxmox::ui.button>
|
||||
</div>
|
||||
</div>
|
||||
</x-proxmox::layout>
|
||||
|
||||
Reference in New Issue
Block a user