diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-24 17:16:17 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-24 17:16:17 +0200 |
| commit | 2ae0b33c9f196634eaa55bd6997d1feae9147385 (patch) | |
| tree | ea4e0e705c693e44f29924014431186af635b7e5 /internal/tui/tui.go | |
| parent | 92114c3b6bfe8a3d28487fcfb34fd291c573500c (diff) | |
tui: improve dashboard tab navigation and live updates
Diffstat (limited to 'internal/tui/tui.go')
| -rw-r--r-- | internal/tui/tui.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/internal/tui/tui.go b/internal/tui/tui.go index d988fa1..143cf02 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -182,9 +182,16 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, cmd } if m.exporter.Visible() { + var dashboardCmd tea.Cmd + // Keep dashboard refresh/data flow alive while export modal is open. + if _, isKey := msg.(tea.KeyMsg); !isKey && m.screen == ScreenDashboard { + next, cmd := m.dashboard.Update(msg) + m.dashboard = next.(dashboardui.Model) + dashboardCmd = cmd + } var cmd tea.Cmd m.exporter, cmd = m.exporter.Update(msg) - return m, cmd + return m, tea.Batch(dashboardCmd, cmd) } return m.updateActiveModel(msg) |
