mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-15 19:08:07 +00:00
fix(ui/model_r): adjust model_r confirm_properties
- change the button text based on `hold` - make it abortable
This commit is contained in:
parent
20e408d7df
commit
a3aacb7f13
@ -382,12 +382,17 @@ extern "C" fn new_confirm_properties(n_args: usize, args: *const Obj, kwargs: *m
|
||||
paragraphs.add(Paragraph::new(style, value));
|
||||
}
|
||||
}
|
||||
let button_text = if hold {
|
||||
TR::buttons__hold_to_confirm.into()
|
||||
} else {
|
||||
TR::buttons__confirm.into()
|
||||
};
|
||||
|
||||
content_in_button_page(
|
||||
title,
|
||||
paragraphs.into_paragraphs(),
|
||||
TR::buttons__confirm.into(),
|
||||
None,
|
||||
button_text,
|
||||
Some("".into()),
|
||||
hold,
|
||||
)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user