Skip to content

Commit

Permalink
fixup! fixup! feat(core): implement show_more dialogue for TR
Browse files Browse the repository at this point in the history
  • Loading branch information
grdddj committed Aug 7, 2023
1 parent 8b4f92f commit 144da07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions core/embed/rust/src/ui/model_tr/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,11 @@ fn content_in_button_page<T: Component + Paginate + MaybeTrace + 'static>(
// Left button - icon, text or nothing.
let cancel_btn = if let Some(verb_cancel) = verb_cancel {
if !verb_cancel.is_empty() {
Some(ButtonDetails::text(verb_cancel))
if verb_cancel.as_ref() == "left_arrow_icon" {
Some(ButtonDetails::left_arrow_icon())
} else {
Some(ButtonDetails::text(verb_cancel))
}
} else {
Some(ButtonDetails::cancel_icon())
}
Expand Down Expand Up @@ -1169,8 +1173,8 @@ extern "C" fn new_confirm_more(n_args: usize, args: *const Obj, kwargs: *mut Map
content_in_button_page(
title,
paragraphs.into_paragraphs(),
button.clone(),
Some(button),
button,
Some("left_arrow_icon".into()),
false,
)
};
Expand Down
2 changes: 1 addition & 1 deletion core/src/trezor/ui/layouts/tr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ async def _confirm_ask_pagination(
paginated = RustLayout(
trezorui2.confirm_more(
title=title,
button="CLOSE",
button="GO BACK",
items=[(ui.MONO, data)],
)
)
Expand Down

0 comments on commit 144da07

Please sign in to comment.