v0.128.1: suppress the class hint on USB drives (ruling F5)

Only Observe-sourced drives ever carried class, so legacy PVE dir:-backed USB
drives showed 'lassú' while registry-sourced ones never did. The card already
carries the USB type tag. Hub-report ClassHint UNCHANGED (UI-only). Pinned by
TestStorageTemplate_USBClassBadgeSuppressed (red-proof run).
This commit is contained in:
2026-07-13 21:40:37 +02:00
parent 61c1391ff6
commit d752f159b9
3 changed files with 54 additions and 0 deletions
@@ -250,6 +250,10 @@ window.__registeredPaths=[{{range .StoragePaths}}{{if .Path}}"{{.Path}}",{{end}}
function usageColorClass(p){ if(p>=85) return 'crit'; if(p>=70) return 'warn'; return 'nominal'; }
var LOCK_ICO='<svg class="ico ico-sm"><use href="#i-lock"/></svg>';
function classTag(d){
// F5 2026-07-13: USB drives never show the class hint — the card already carries the USB
// tag, and Observe-sourced USB drives showing "lassú" while registry-sourced ones never do
// was a misleading inconsistency. Hub-report ClassHint is UNCHANGED (UI-only suppression).
if(d.type==='usb') return '';
if(d.class==='fast') return '<span class="tag">gyors</span>';
if(d.class==='slow') return '<span class="tag tag-off">lassú</span>';
return '';