Compare commits

..

No commits in common. "69558f15b470272a48e4914a152601d706e3284e" and "01e5ea14ab5df1db469c6e8f7be3cbf054323236" have entirely different histories.

View File

@ -24,8 +24,6 @@ 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);
@ -736,8 +734,7 @@ 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),
] ]
} }
@ -749,8 +746,7 @@ 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),
] ]
} }