Skip to content

Add remove current wallet action to utilities#1245

Open
lewbei wants to merge 1 commit into
BeamMW:masterfrom
lewbei:add-remove-current-wallet-utilities
Open

Add remove current wallet action to utilities#1245
lewbei wants to merge 1 commit into
BeamMW:masterfrom
lewbei:add-remove-current-wallet-utilities

Conversation

@lewbei
Copy link
Copy Markdown

@lewbei lewbei commented May 12, 2026

Fixes #823.

Summary:

  • Adds the "Remove current wallet" action to Utilities.
  • Shows a confirmation dialog before requesting the wallet password.
  • Uses the existing wallet reset flow and returns to the start screen after reset completes.

Verification:

  • Ran git diff --check.
  • Full local build was not run because CMake/Qt tools are not installed in this environment.

@Maxnflaxl
Copy link
Copy Markdown
Member

Hi, the How To Build doc can be found here: https://github.com/BeamMW/beam-ui/wiki/How-to-build-Beam-desktop-UI

If you run into issues with the setup, you can join https://t.me/beamdevsupport and we'll assist you.

Please make sure that everything works as expected.

parent: main
settingsViewModel: viewModel
//% "Confirm wallet removal"
dialogTitle: qsTrId("settings-remove-wallet-password-title")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's necessary to update translation files for this string. translation files are updated automatically when the project is built. but don't forget to add to git

id: removeWalletConfirmationDialog
parent: main
//% "Remove current wallet"
title: qsTrId("settings-remove-wallet")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do the same as for settings-remove-wallet-password-title

//% "Remove current wallet"
title: qsTrId("settings-remove-wallet")
//% "All data will be erased. Make sure you've saved your seed phrase if you want to restore this wallet later on!"
text: qsTrId("settings-remove-wallet-confirm-message") + "\n\n" +
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do the same as for settings-remove-wallet-password-title

//% "All data will be erased. Make sure you've saved your seed phrase if you want to restore this wallet later on!"
text: qsTrId("settings-remove-wallet-confirm-message") + "\n\n" +
//% "Are you sure you want to remove your wallet?"
qsTrId("settings-remove-wallet-confirm-question")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do the same as for settings-remove-wallet-password-title

//% "Are you sure you want to remove your wallet?"
qsTrId("settings-remove-wallet-confirm-question")
//% "proceed"
okButtonText: qsTrId("settings-remove-wallet-proceed")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do the same as for settings-remove-wallet-password-title

//% "Enter your password to remove the wallet"
passwordPlaceholderText: qsTrId("settings-remove-wallet-password-placeholder")
//% "remove"
okButtonText: qsTrId("settings-remove-wallet-password-button")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do the same as for settings-remove-wallet-password-title

dialogTitle: qsTrId("settings-remove-wallet-password-title")
dialogMessage: ""
//% "Enter your password to remove the wallet"
passwordPlaceholderText: qsTrId("settings-remove-wallet-password-placeholder")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do the same as for settings-remove-wallet-password-title

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "Remove current wallet" to Utilities

3 participants