Skip to content

Commit

Permalink
feat: error message when trying to rename group
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaphoood committed Dec 3, 2023
1 parent 6c35422 commit d13ba7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tui/navigate.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func (n *Navigate) handleChangeCmd(cmd []string) tea.Cmd {
}
focusedEntry, ok := (*focusedItem).(parser.Entry)
if !ok {
return nil
return func() tea.Msg { return setCommandLineMessageMsg{"Sorry, only entries can be renamed"} }
}
return makeChangeFieldAction(focusedEntry, "Title", newValue, focusChangedItemCmd(focusedEntry.UUID))
}
Expand Down

0 comments on commit d13ba7a

Please sign in to comment.