diff --git a/.codebeatsettings b/.codebeatsettings index bac65a51..50ce9b9e 100644 --- a/.codebeatsettings +++ b/.codebeatsettings @@ -36,6 +36,5 @@ 45, 60 ] - } } \ No newline at end of file diff --git a/internal/ui/table_helper.go b/internal/ui/table_helper.go index 547eb15c..974bcc1b 100644 --- a/internal/ui/table_helper.go +++ b/internal/ui/table_helper.go @@ -146,38 +146,3 @@ func fuzzyFilter(q string, index int, data render.TableData) render.TableData { return filtered } - -// UpdateTitle refreshes the table title. -func styleTitle(rc int, ns, base, path, buff string, styles *config.Styles) string { - if rc > 0 { - rc-- - } - - base = strings.Title(base) - if ns == render.AllNamespaces { - ns = render.NamespaceAll - } - info := ns - if path != "" { - info = path - cns, n := render.Namespaced(path) - if cns == render.ClusterScope { - info = n - } - } - - var title string - if info == "" || info == render.ClusterScope { - title = SkinTitle(fmt.Sprintf(titleFmt, base, rc), styles.Frame()) - } else { - title = SkinTitle(fmt.Sprintf(nsTitleFmt, base, info, rc), styles.Frame()) - } - if buff == "" { - return title - } - - if IsLabelSelector(buff) { - buff = TrimLabelSelector(buff) - } - return title + SkinTitle(fmt.Sprintf(SearchFmt, buff), styles.Frame()) -} diff --git a/internal/view/ns.go b/internal/view/ns.go index d7caf7d8..2d163857 100644 --- a/internal/view/ns.go +++ b/internal/view/ns.go @@ -79,7 +79,7 @@ func (n *Namespace) decorate(data render.TableData) render.TableData { render.RowEvent{ Kind: render.EventUnchanged, Row: render.Row{ - ID: render.AllNamespaces, + ID: render.NamespaceAll, Fields: render.Fields{render.NamespaceAll, "Active", "0"}, }, },