summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tui/dashboard')
-rw-r--r--internal/tui/dashboard/model.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/tui/dashboard/model.go b/internal/tui/dashboard/model.go
index 5500369..407802f 100644
--- a/internal/tui/dashboard/model.go
+++ b/internal/tui/dashboard/model.go
@@ -228,6 +228,17 @@ func (m Model) LatestSnapshot() *statsengine.Snapshot {
return m.latest
}
+// BlocksGlobalShortcuts reports whether modal UI in the active tab should
+// suppress top-level shortcuts (for example global export key handling).
+func (m Model) BlocksGlobalShortcuts() bool {
+ return m.activeTab == TabStream && m.streamModel.FilterModalVisible()
+}
+
+// SetStreamSource updates the live stream source used by the stream tab.
+func (m *Model) SetStreamSource(source *eventstream.RingBuffer) {
+ m.streamModel.SetSource(source)
+}
+
// View renders the tab bar, active tab scaffold, and help bar.
func (m Model) View() string {
var b strings.Builder