feat: simplify SCSI controller configuration UI by removing advanced view restrictions
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user