From c9be0d76f509c3b26046c05d6e9bc86c72b35fda Mon Sep 17 00:00:00 2001 From: Dolev Hadar Date: Tue, 10 Sep 2024 21:55:07 +0300 Subject: [PATCH] WIP --- ui/components/reposection/reposection.go | 2 -- ui/ui.go | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ui/components/reposection/reposection.go b/ui/components/reposection/reposection.go index 6b169c40..9a83a97e 100644 --- a/ui/components/reposection/reposection.go +++ b/ui/components/reposection/reposection.go @@ -474,8 +474,6 @@ func (m *Model) FetchNextPageSectionRows() []tea.Cmd { cmds = append(cmds, m.fetchPRsCmd()) } - m.Table.SetIsLoading(true) - cmds = append(cmds, m.Table.StartLoadingSpinner()) return cmds } diff --git a/ui/ui.go b/ui/ui.go index 71393139..e8170e05 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -539,9 +539,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } case execProcessFinishedMsg, tea.FocusMsg: - newSections, fetchSectionsCmds := m.fetchAllViewSections() - m.setCurrentViewSections(newSections) - cmds = append(cmds, fetchSectionsCmds) + cmds = append(cmds, currSection.FetchNextPageSectionRows()...) case tea.WindowSizeMsg: m.onWindowSizeChanged(msg) @@ -552,7 +550,6 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.syncProgramContext() - log.Debug("🟢 repoView", "msg", msg) var bsCmd tea.Cmd m.branchSidebar, bsCmd = m.branchSidebar.Update(msg) cmds = append(cmds, bsCmd)