mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-19 13:08:14 +00:00
test(core): visit confirm_action()
menu during tests
Also, refactor `new_confirm_action_uni` a bit. [no changelog]
This commit is contained in:
parent
32215811f4
commit
d47582bad6
@ -287,14 +287,11 @@ fn new_confirm_action_uni<T: Component + PaginateFull + MaybeTrace + 'static>(
|
|||||||
.with_swipeup_footer(strings.footer_description)
|
.with_swipeup_footer(strings.footer_description)
|
||||||
.with_vertical_pages();
|
.with_vertical_pages();
|
||||||
|
|
||||||
match extra {
|
content = match extra {
|
||||||
ConfirmActionExtra::Menu { .. } | ConfirmActionExtra::ExternalMenu => {
|
ConfirmActionExtra::ExternalMenu => content.with_menu_button().with_external_menu(),
|
||||||
content = content.with_menu_button();
|
ConfirmActionExtra::Menu { .. } => content.with_menu_button(),
|
||||||
}
|
ConfirmActionExtra::Cancel => content.with_cancel_button(),
|
||||||
ConfirmActionExtra::Cancel => {
|
};
|
||||||
content = content.with_cancel_button();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if page_counter {
|
if page_counter {
|
||||||
fn footer_update_fn<T: Component + PaginateFull>(
|
fn footer_update_fn<T: Component + PaginateFull>(
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user