fix: Color PV row according to its STATUS column (#3513)

mine
YE Feng 2025-08-20 23:06:05 +08:00 committed by GitHub
parent 41eeb5cc24
commit 4686c1deec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ func (PersistentVolume) ColorerFunc() model1.ColorerFunc {
c := model1.DefaultColorer(ns, h, re)
idx, ok := h.IndexOf("STATUS", true)
if ok {
if !ok {
return c
}
switch strings.TrimSpace(re.Row.Fields[idx]) {