mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
use title for input status by provider
This commit is contained in:
parent
9d40e7f01c
commit
41515b0f2b
@ -490,10 +490,9 @@ impl Page {
|
|||||||
gemini::client::response::meta::Status::SensitiveInput => {
|
gemini::client::response::meta::Status::SensitiveInput => {
|
||||||
// Format response
|
// Format response
|
||||||
let status = Status::Input;
|
let status = Status::Input;
|
||||||
let title = "Input expected";
|
let title = match response.data() {
|
||||||
let description = match response.data() {
|
|
||||||
Some(data) => data.value().as_str(),
|
Some(data) => data.value().as_str(),
|
||||||
None => title,
|
None => "Input expected",
|
||||||
};
|
};
|
||||||
|
|
||||||
// Toggle input form variant
|
// Toggle input form variant
|
||||||
@ -502,14 +501,14 @@ impl Page {
|
|||||||
input.set_new_sensitive(
|
input.set_new_sensitive(
|
||||||
tab_action,
|
tab_action,
|
||||||
uri,
|
uri,
|
||||||
Some(description),
|
Some(title),
|
||||||
Some(1024),
|
Some(1024),
|
||||||
),
|
),
|
||||||
_ =>
|
_ =>
|
||||||
input.set_new_response(
|
input.set_new_response(
|
||||||
tab_action,
|
tab_action,
|
||||||
uri,
|
uri,
|
||||||
Some(description),
|
Some(title),
|
||||||
Some(1024),
|
Some(1024),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user