Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dlvhdr committed Sep 10, 2024
1 parent f3ccf02 commit c9be0d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions ui/components/reposection/reposection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
5 changes: 1 addition & 4 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit c9be0d7

Please sign in to comment.