mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
add identity page for CertificateRequest status code
This commit is contained in:
parent
611addda42
commit
63f7f1c769
4 changed files with 68 additions and 0 deletions
|
|
@ -848,6 +848,24 @@ impl Page {
|
|||
|
||||
update.activate(Some(&id));
|
||||
},
|
||||
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-60
|
||||
gemini::client::response::meta::Status::CertificateRequest => {
|
||||
// Define common data
|
||||
let status = Status::Success;
|
||||
let title = "Identity";
|
||||
|
||||
// Update widget
|
||||
content
|
||||
.to_status_identity()
|
||||
.set_title(title);
|
||||
|
||||
// Update meta
|
||||
meta.set_status(status)
|
||||
.set_title(title);
|
||||
|
||||
// Update window
|
||||
update.activate(Some(&id));
|
||||
}
|
||||
_ => {
|
||||
// Define common data
|
||||
let status = Status::Failure;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue