From a3aacb7f136764cdcb76dfd0d2606db0a6f90455 Mon Sep 17 00:00:00 2001 From: obrusvit Date: Fri, 4 Oct 2024 17:09:27 +0200 Subject: [PATCH] fix(ui/model_r): adjust model_r confirm_properties - change the button text based on `hold` - make it abortable --- core/embed/rust/src/ui/model_tr/layout.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/embed/rust/src/ui/model_tr/layout.rs b/core/embed/rust/src/ui/model_tr/layout.rs index f957ca8510..c6cf1c791b 100644 --- a/core/embed/rust/src/ui/model_tr/layout.rs +++ b/core/embed/rust/src/ui/model_tr/layout.rs @@ -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, ) };