feat: simplify SCSI controller configuration UI by removing advanced view restrictions

This commit is contained in:
2025-12-05 04:23:24 -05:00
parent e37165e06e
commit 62583abec8
2 changed files with 4 additions and 18 deletions

View File

@@ -17,7 +17,7 @@
<div class="flex flex-col flex-1" x-data="{
isAdvancedView: localStorage.getItem('proxmox-view-mode') === 'advanced',
isAdvancedOnlyView: {{ in_array($view, ['boot-order', 'cloud-init', 'display', 'system', 'subdomain', 'statistics', 'help', 'firewall']) ? 'true' : 'false' }},
isAdvancedOnlyView: {{ in_array($view, ['boot-order', 'cloud-init', 'display', 'system', 'storage', 'subdomain', 'statistics', 'help', 'firewall']) ? 'true' : 'false' }},
toggleView() {
if (!this.isAdvancedOnlyView) {
this.isAdvancedView = !this.isAdvancedView;
@@ -626,7 +626,7 @@
<div class="lg:hidden" x-data="{
open: false,
isAdvancedView: localStorage.getItem('proxmox-view-mode') === 'advanced',
isAdvancedOnlyView: {{ in_array($view, ['boot-order', 'cloud-init', 'display', 'system', 'subdomain', 'statistics', 'help', 'firewall']) ? 'true' : 'false' }},
isAdvancedOnlyView: {{ in_array($view, ['boot-order', 'cloud-init', 'display', 'system', 'storage', 'subdomain', 'statistics', 'help', 'firewall']) ? 'true' : 'false' }},
toggleView() {
if (!this.isAdvancedOnlyView) {
this.isAdvancedView = !this.isAdvancedView;

View File

@@ -135,22 +135,8 @@
</div>
</div>
<!-- SCSI Controller Configuration (Advanced Only) -->
<div class="relative bg-background-secondary border border-neutral rounded-lg p-5 space-y-4"
x-data="{
isAdvancedView: localStorage.getItem('proxmox-view-mode') === 'advanced'
}"
x-init="
window.addEventListener('proxmox-view-mode-changed', (e) => {
isAdvancedView = e.detail.isAdvancedView;
});
"
:class="{ 'opacity-50 pointer-events-none': !isAdvancedView }">
<template x-if="!isAdvancedView">
<div class="absolute inset-0 flex items-center justify-center z-10 bg-background-secondary/80 rounded-lg">
<span class="text-sm text-base/60 font-medium">Enable Advanced View to configure SCSI controller</span>
</div>
</template>
<!-- SCSI Controller Configuration -->
<div class="bg-background-secondary border border-neutral rounded-lg p-5 space-y-4">
<div class="flex items-center justify-between">
<div>
<div class="flex items-center gap-2">