ui: customizable tabs per column view
This reduces the number of choices the user needs to make. Some of these filters were redundant anyways. This also saves memory. Universe: Notes Notificaitons: Notes & Replies Everything else: Notes, Notes & Replies Changelog-Changed: Simplified tab selections on some columns Fixes: https://github.com/damus-io/notedeck/issues/517
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use notedeck::FilterState;
|
||||
|
||||
use crate::timeline::{PubkeySource, Timeline, TimelineKind};
|
||||
use crate::timeline::{PubkeySource, Timeline, TimelineKind, TimelineTab};
|
||||
use enostr::{Filter, Pubkey};
|
||||
use nostrdb::Ndb;
|
||||
use tracing::{debug, error, info};
|
||||
@@ -151,6 +151,7 @@ impl ArgColumn {
|
||||
ArgColumn::Generic(filters) => Some(Timeline::new(
|
||||
TimelineKind::Generic,
|
||||
FilterState::ready(filters),
|
||||
TimelineTab::full_tabs(),
|
||||
)),
|
||||
ArgColumn::Timeline(tk) => tk.into_timeline(ndb, user),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user