fix: context drawers on the search view

This commit is contained in:
Michael Aaron Murphy 2024-10-29 13:51:48 +01:00
parent 8af34ba9c4
commit 0dbc1e9bec
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
33 changed files with 209 additions and 57 deletions

View file

@ -65,11 +65,7 @@ pub trait Page<Message: 'static>: Downcast {
/// Reload page metadata via a Task.
#[allow(unused)]
fn on_enter(
&mut self,
page: crate::Entity,
sender: tokio::sync::mpsc::Sender<Message>,
) -> Task<Message> {
fn on_enter(&mut self, sender: tokio::sync::mpsc::Sender<Message>) -> Task<Message> {
Task::none()
}
@ -78,6 +74,9 @@ pub trait Page<Message: 'static>: Downcast {
Task::none()
}
/// Assigns the entity ID of the page to the page.
fn set_id(&mut self, entity: Entity) {}
/// The title to display in the page header.
fn title(&self) -> Option<&str> {
None