Fixed a few cosmetic bugs

- Clear status messages when setting or deleting fields
- Fixed "Filter" status label
This commit is contained in:
Leon Mika 2022-08-31 20:46:53 +10:00
parent 0c377e231a
commit 5f76836166
7 changed files with 22 additions and 12 deletions

View file

@ -10,8 +10,10 @@ func Error(err error) tea.Msg {
return ErrorMsg(err)
}
func SetStatus(msg string) tea.Msg {
return StatusMsg(msg)
func SetStatus(msg string) tea.Cmd {
return func() tea.Msg {
return StatusMsg(msg)
}
}
func PromptForInput(prompt string, onDone func(value string) tea.Msg) tea.Msg {