mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-11 02:44:15 +00:00
add is_sensitive_input argument
This commit is contained in:
parent
0b1bdb43b5
commit
7fc6cad8b5
@ -284,7 +284,12 @@ impl Page {
|
|||||||
let description = gformat!("{placeholder}");
|
let description = gformat!("{placeholder}");
|
||||||
|
|
||||||
// Make input form
|
// Make input form
|
||||||
input.set_new_response(action_page_open, uri, Some(&description), Some(1024));
|
input.set_new_response(
|
||||||
|
action_page_open, uri,
|
||||||
|
Some(&description),
|
||||||
|
Some(1024),
|
||||||
|
"11" == code.as_str() // sensitive input
|
||||||
|
);
|
||||||
|
|
||||||
// Update meta
|
// Update meta
|
||||||
meta.borrow_mut().status = Some(status);
|
meta.borrow_mut().status = Some(status);
|
||||||
|
@ -34,6 +34,7 @@ impl Input {
|
|||||||
base: Uri,
|
base: Uri,
|
||||||
title: Option<&str>,
|
title: Option<&str>,
|
||||||
size_limit: Option<usize>,
|
size_limit: Option<usize>,
|
||||||
|
is_sensitive_input: bool,
|
||||||
) {
|
) {
|
||||||
self.widget.update(Some(
|
self.widget.update(Some(
|
||||||
&Response::new_arc(action_page_open, base, title, size_limit).gobject(),
|
&Response::new_arc(action_page_open, base, title, size_limit).gobject(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user