From d19bb89ce793c7791441bbd2b7356e248f0768fa Mon Sep 17 00:00:00 2001 From: Siege Lion <1448189829@qq.com> Date: Fri, 12 May 2023 22:41:41 +0800 Subject: [PATCH] Fix: fix the typo error in vela top (#5982) --- references/cli/top/component/menu.go | 1 - references/cli/top/view/application_view.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/references/cli/top/component/menu.go b/references/cli/top/component/menu.go index fdedea496..276c16e96 100644 --- a/references/cli/top/component/menu.go +++ b/references/cli/top/component/menu.go @@ -48,7 +48,6 @@ func (m *Menu) StackPop(_, new model.View) { } else { m.UpdateMenu(new.Hint()) } - } // StackPush change itself when accept "push" notify from app's main view diff --git a/references/cli/top/view/application_view.go b/references/cli/top/view/application_view.go index e21bb81b6..ee13aa897 100644 --- a/references/cli/top/view/application_view.go +++ b/references/cli/top/view/application_view.go @@ -134,7 +134,7 @@ func (v *ApplicationView) Title() string { func (v *ApplicationView) bindKeys() { v.Actions().Delete([]tcell.Key{tcell.KeyEnter}) v.Actions().Add(model.KeyActions{ - tcell.KeyESC: model.KeyAction{Description: "Exist", Action: v.app.Exist, Visible: true, Shared: true}, + tcell.KeyESC: model.KeyAction{Description: "Exit", Action: v.app.Exist, Visible: true, Shared: true}, tcell.KeyEnter: model.KeyAction{Description: "Managed Resource", Action: v.managedResourceView, Visible: true, Shared: true}, component.KeyN: model.KeyAction{Description: "Select Namespace", Action: v.namespaceView, Visible: true, Shared: true}, component.KeyY: model.KeyAction{Description: "Yaml", Action: v.yamlView, Visible: true, Shared: true},