mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
delegate is_sensitive_input argument to the form component
This commit is contained in:
parent
7fc6cad8b5
commit
a15738f391
3 changed files with 11 additions and 3 deletions
|
|
@ -28,6 +28,7 @@ impl Response {
|
|||
base: Uri,
|
||||
title: Option<&str>,
|
||||
size_limit: Option<usize>,
|
||||
is_sensitive_input: bool,
|
||||
) -> Arc<Self> {
|
||||
// Init local actions
|
||||
let action_update = Arc::new(SimpleAction::new(&uuid_string_random(), None));
|
||||
|
|
@ -35,7 +36,7 @@ impl Response {
|
|||
|
||||
// Init components
|
||||
let control = Control::new_arc(action_send.clone());
|
||||
let form = Form::new_arc(action_update.clone());
|
||||
let form = Form::new_arc(action_update.clone(), is_sensitive_input);
|
||||
let title = Title::new_arc(title);
|
||||
|
||||
// Init widget
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue