1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-28 15:22:14 +00:00

chore(eckahrt): update share confirmation success function

This commit is contained in:
Lukas Bielesch 2025-02-26 11:52:43 +01:00
parent eceafe05f6
commit c1ada0dfed

View File

@ -340,33 +340,34 @@ async def show_share_confirmation_success(
) -> None: ) -> None:
if share_index is None or num_of_shares is None: if share_index is None or num_of_shares is None:
# it is a BIP39 or a 1-of-1 SLIP39 backup # it is a BIP39 or a 1-of-1 SLIP39 backup
# mercury UI shows only final wallet backup confirmation screen later # delizia and eckhart UIs show only final wallet backup confirmation screen later
return return
# TODO: super-shamir copy not done # TODO: super-shamir copy not done
if share_index == num_of_shares - 1: if share_index == num_of_shares - 1:
title = TR.reset__share_completed_template.format(share_index + 1) content = TR.reset__share_completed_template.format(share_index + 1)
if group_index is None: if group_index is None:
footer_description = "" title = TR.words__title_done
else: else:
footer_description = TR.reset__finished_verifying_group_template.format( title = TR.reset__finished_verifying_group_template.format(group_index + 1)
group_index + 1
)
else: else:
if group_index is None: if group_index is None:
title = TR.reset__share_completed_template.format(share_index + 1) content = TR.reset__share_completed_template.format(share_index + 1)
footer_description = ( title = TR.instructions__shares_continue_with_x_template.format(
TR.instructions__shares_continue_with_x_template.format(share_index + 2) share_index + 2
) )
else: else:
title = TR.reset__continue_with_next_share content = TR.reset__continue_with_next_share
footer_description = ( title = TR.reset__group_share_checked_successfully_template.format(
TR.reset__group_share_checked_successfully_template.format( group_index + 1, share_index + 1
group_index + 1, share_index + 1
)
) )
await show_success("success_recovery", title, subheader=footer_description) await show_success(
"success_recovery",
content,
subheader=title,
button=TR.buttons__continue,
)
def show_share_confirmation_failure() -> Awaitable[None]: def show_share_confirmation_failure() -> Awaitable[None]: