Compare commits

...

2 Commits

View File

@ -24,6 +24,8 @@ const SEARCH_RESULTS_PER_PAGE: usize = 20;
fn init(url: Url, orders: &mut impl Orders<Msg>) -> Model { fn init(url: Url, orders: &mut impl Orders<Msg>) -> Model {
if url.hash().is_none() { if url.hash().is_none() {
orders.request_url(urls::search("is:unread", 0)); orders.request_url(urls::search("is:unread", 0));
} else {
orders.notify(subs::UrlRequested::new(url));
}; };
orders.subscribe(on_url_changed); orders.subscribe(on_url_changed);
@ -734,7 +736,8 @@ fn view_desktop(model: &Model) -> Node<Msg> {
}; };
div![ div![
view_header(&model.query, &model.refreshing_state), view_header(&model.query, &model.refreshing_state),
section![C!["section"], div![C!["container"], content],] section![C!["section"], div![C!["container"], content]],
view_header(&model.query, &model.refreshing_state),
] ]
} }
@ -746,7 +749,8 @@ fn view_mobile(model: &Model) -> Node<Msg> {
}; };
div![ div![
view_header(&model.query, &model.refreshing_state), view_header(&model.query, &model.refreshing_state),
section![C!["section"], div![C!["content"], content],] section![C!["section"], div![C!["content"], content]],
view_header(&model.query, &model.refreshing_state),
] ]
} }