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:
parent
eceafe05f6
commit
c1ada0dfed
@ -340,33 +340,34 @@ async def show_share_confirmation_success(
|
||||
) -> None:
|
||||
if share_index is None or num_of_shares is None:
|
||||
# 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
|
||||
|
||||
# TODO: super-shamir copy not done
|
||||
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:
|
||||
footer_description = ""
|
||||
title = TR.words__title_done
|
||||
else:
|
||||
footer_description = TR.reset__finished_verifying_group_template.format(
|
||||
group_index + 1
|
||||
)
|
||||
title = TR.reset__finished_verifying_group_template.format(group_index + 1)
|
||||
else:
|
||||
if group_index is None:
|
||||
title = TR.reset__share_completed_template.format(share_index + 1)
|
||||
footer_description = (
|
||||
TR.instructions__shares_continue_with_x_template.format(share_index + 2)
|
||||
content = TR.reset__share_completed_template.format(share_index + 1)
|
||||
title = TR.instructions__shares_continue_with_x_template.format(
|
||||
share_index + 2
|
||||
)
|
||||
else:
|
||||
title = TR.reset__continue_with_next_share
|
||||
footer_description = (
|
||||
TR.reset__group_share_checked_successfully_template.format(
|
||||
content = TR.reset__continue_with_next_share
|
||||
title = TR.reset__group_share_checked_successfully_template.format(
|
||||
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]:
|
||||
|
Loading…
Reference in New Issue
Block a user