From 83a3202bdf002452b50bea0236479eca2c361912 Mon Sep 17 00:00:00 2001 From: Mikhail Chusavitin Date: Thu, 16 Apr 2026 09:28:14 +0300 Subject: [PATCH] Restore RAID section for server storage tab --- web/templates/index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/templates/index.html b/web/templates/index.html index 882fd17..d7e5bb6 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -378,6 +378,7 @@ let TAB_CONFIG = { singleSelect: false, label: 'Storage', sections: [ + { title: 'RAID Контроллеры', categories: ['RAID'] }, { title: 'Диски', categories: ['M2', 'SSD', 'HDD', 'EDSFF', 'HHHL'] } ] }, @@ -1166,6 +1167,7 @@ function applyConfigTypeToTabs() { const baseCategories = ['MB', 'CPU', 'MEM', 'DKC', 'CTL', 'ENC']; const storageCategories = ['RAID', 'M2', 'SSD', 'HDD', 'EDSFF', 'HHHL']; const storageSections = [ + { title: 'RAID Контроллеры', categories: ['RAID'] }, { title: 'Диски', categories: ['M2', 'SSD', 'HDD', 'EDSFF', 'HHHL'] } ]; const pciCategories = ['GPU', 'DPU', 'NIC', 'HCA', 'HBA', 'HIC']; @@ -1187,7 +1189,12 @@ function applyConfigTypeToTabs() { TAB_CONFIG.storage.categories = storageCategories.filter(c => { return configType === 'storage' ? !STORAGE_HIDDEN_STORAGE_CATEGORIES.includes(c) : true; }); - TAB_CONFIG.storage.sections = storageSections; + TAB_CONFIG.storage.sections = storageSections.filter(section => { + if (configType === 'storage') { + return !section.categories.every(cat => STORAGE_HIDDEN_STORAGE_CATEGORIES.includes(cat)); + } + return true; + }); TAB_CONFIG.pci.categories = pciCategories.filter(c => { return configType === 'storage' ? !STORAGE_HIDDEN_PCI_CATEGORIES.includes(c) : c !== 'HIC';