mirror of
https://github.com/taigrr/gico.git
synced 2026-04-01 18:58:59 -07:00
update year for commitlog
This commit is contained in:
@@ -111,10 +111,9 @@ func (m CommitLog) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
mr := commits.RepoSet(m.Repos)
|
mr := commits.RepoSet(m.Repos)
|
||||||
cis, err := mr.GetRepoCommits(m.Year, m.Authors)
|
cis, _ := mr.GetRepoCommits(m.Year, m.Authors)
|
||||||
if err != nil {
|
m.Commits = cis
|
||||||
m.Commits = cis
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var cmd tea.Cmd
|
var cmd tea.Cmd
|
||||||
@@ -301,6 +300,8 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
case graph, commitLog:
|
case graph, commitLog:
|
||||||
tmp, _ := m.GraphModel.Update(msg)
|
tmp, _ := m.GraphModel.Update(msg)
|
||||||
m.GraphModel, _ = tmp.(Graph)
|
m.GraphModel, _ = tmp.(Graph)
|
||||||
|
|
||||||
|
m.CommitLogModel.Year = m.GraphModel.Year
|
||||||
m.CommitLogModel.YearDay = m.GraphModel.Selected
|
m.CommitLogModel.YearDay = m.GraphModel.Selected
|
||||||
m.CommitLogModel.Selected = 0
|
m.CommitLogModel.Selected = 0
|
||||||
m.CommitLogModel.Paginator.Page = 0
|
m.CommitLogModel.Paginator.Page = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user