fix: Color PV row according to its STATUS column (#3513)
parent
41eeb5cc24
commit
4686c1deec
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue