mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
update identity subtitle format
This commit is contained in:
parent
bb42239749
commit
73b2b2569f
@ -22,6 +22,9 @@ impl Gemini {
|
|||||||
// Init widget
|
// Init widget
|
||||||
let widget = Rc::new(Widget::new());
|
let widget = Rc::new(Widget::new());
|
||||||
|
|
||||||
|
// Init shared components
|
||||||
|
let auth_url = auth_uri.to_string();
|
||||||
|
|
||||||
// Add new identity option
|
// Add new identity option
|
||||||
widget
|
widget
|
||||||
.form
|
.form
|
||||||
@ -42,11 +45,24 @@ impl Gemini {
|
|||||||
widget.form.list.append(
|
widget.form.list.append(
|
||||||
Some(identity.id),
|
Some(identity.id),
|
||||||
&certificate.subject_name().unwrap(),
|
&certificate.subject_name().unwrap(),
|
||||||
&certificate
|
&format!(
|
||||||
.not_valid_after()
|
"valid until {} | auth: {}",
|
||||||
.unwrap()
|
certificate
|
||||||
.format_iso8601()
|
.not_valid_after()
|
||||||
.unwrap(),
|
.unwrap()
|
||||||
|
.format("%Y-%m-%d")
|
||||||
|
.unwrap(),
|
||||||
|
profile
|
||||||
|
.identity
|
||||||
|
.gemini
|
||||||
|
.auth
|
||||||
|
.database
|
||||||
|
.records(Some(auth_url.as_str()))
|
||||||
|
.unwrap()
|
||||||
|
.iter()
|
||||||
|
.filter(|this| this.profile_identity_gemini_id == identity.id)
|
||||||
|
.count(),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -74,7 +90,7 @@ impl Gemini {
|
|||||||
.identity
|
.identity
|
||||||
.gemini
|
.gemini
|
||||||
.auth
|
.auth
|
||||||
.apply(profile_identity_gemini_id, auth_uri.to_string().as_str())
|
.apply(profile_identity_gemini_id, auth_url.as_str())
|
||||||
.unwrap(); //@TODO handle errors
|
.unwrap(); //@TODO handle errors
|
||||||
|
|
||||||
// Reload page
|
// Reload page
|
||||||
|
Loading…
x
Reference in New Issue
Block a user