Skip to main content

tui/view/
reports.rs

1//! Inherent intent handling for `ReportsTab`.
2//!
3//! Drawing stays on the inherent `draw(frame, area)` in `tabs::reports`; the
4//! reports tab is driven via the command palette and only consumes the scroll
5//! intents.
6
7use crate::event::Intent;
8use crate::tabs::reports::ReportsTab;
9use crate::view::Handled;
10
11impl ReportsTab {
12    pub fn handle(&mut self, intent: Intent) -> Handled {
13        if self.scroll_by(intent) {
14            return Handled::Consumed(vec![]);
15        }
16        Handled::Ignored
17    }
18}