add page for reading a single gemlog entry
This commit is contained in:
parent
8414414f98
commit
02ed95a612
5 changed files with 78 additions and 17 deletions
|
|
@ -32,9 +32,12 @@ func (m ActionListPageModel) InitActionListPage() tea.Cmd {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (m ActionListPageModel) Update(msg tea.Msg, ctx *context) (ActionListPageModel, tea.Cmd) {
|
||||
func (m ActionListPageModel) Update(msg tea.Msg, active bool, ctx *context) (ActionListPageModel, tea.Cmd) {
|
||||
switch msg := msg.(type) {
|
||||
case tea.KeyMsg:
|
||||
if !active {
|
||||
return m, nil
|
||||
}
|
||||
switch msg.String() {
|
||||
case "up", "k":
|
||||
if m.cursor > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue