Show login page after choosing an instance
This commit is contained in:
parent
6266004dcb
commit
cd0fd30e69
|
@ -128,7 +128,7 @@ impl SimpleComponent for InstancesPage {
|
||||||
current_account.instance_url = url[0..url.len() - 1].to_string();
|
current_account.instance_url = url[0..url.len() - 1].to_string();
|
||||||
current_account.jwt = None;
|
current_account.jwt = None;
|
||||||
settings::update_current_account(current_account);
|
settings::update_current_account(current_account);
|
||||||
crate::AppMsg::OpenPosts
|
crate::AppMsg::ShowLogin
|
||||||
}
|
}
|
||||||
Err(err) => crate::AppMsg::ShowMessage(err.to_string()),
|
Err(err) => crate::AppMsg::ShowMessage(err.to_string()),
|
||||||
};
|
};
|
||||||
|
|
|
@ -50,7 +50,7 @@ impl SimpleComponent for LoginPage {
|
||||||
set_orientation: gtk::Orientation::Horizontal,
|
set_orientation: gtk::Orientation::Horizontal,
|
||||||
set_halign: gtk::Align::End,
|
set_halign: gtk::Align::End,
|
||||||
gtk::Button {
|
gtk::Button {
|
||||||
set_label: "Cancel",
|
set_label: "Cancel/Skip",
|
||||||
connect_clicked => LoginPageInput::Cancel,
|
connect_clicked => LoginPageInput::Cancel,
|
||||||
set_margin_end: 10,
|
set_margin_end: 10,
|
||||||
},
|
},
|
||||||
|
|
|
@ -63,7 +63,8 @@ impl SimpleComponent for PostsPage {
|
||||||
gtk::Button {
|
gtk::Button {
|
||||||
set_label: "More",
|
set_label: "More",
|
||||||
connect_clicked => PostsPageInput::FetchPosts(model.posts_type, false),
|
connect_clicked => PostsPageInput::FetchPosts(model.posts_type, false),
|
||||||
set_margin_all: 10,
|
set_margin_top: 10,
|
||||||
|
set_margin_bottom: 10,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue