fix(tui): help dialog sorting
This commit is contained in:
parent
bd46cf0f86
commit
1d0bfc2b2a
3 changed files with 17 additions and 9 deletions
|
|
@ -15,7 +15,7 @@ type helpDialog struct {
|
|||
width int
|
||||
height int
|
||||
modal *modal.Modal
|
||||
commands commands.CommandRegistry
|
||||
commands []commands.Command
|
||||
}
|
||||
|
||||
func (h *helpDialog) Init() tea.Cmd {
|
||||
|
|
@ -80,7 +80,7 @@ type HelpDialog interface {
|
|||
layout.Modal
|
||||
}
|
||||
|
||||
func NewHelpDialog(commands commands.CommandRegistry) HelpDialog {
|
||||
func NewHelpDialog(commands []commands.Command) HelpDialog {
|
||||
return &helpDialog{
|
||||
commands: commands,
|
||||
modal: modal.New(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue