mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-28 19:34:26 +01:00
Merge pull request #64 from MutinyWallet/delete-flow
Delete Improvements
This commit is contained in:
@@ -23,13 +23,14 @@ export function DeleteEverything() {
|
||||
async function resetNode() {
|
||||
setConfirmLoading(true);
|
||||
deleteDb("gossip")
|
||||
deleteDb("wallet")
|
||||
localStorage.clear();
|
||||
showToast({ title: "Deleted", description: `Deleted all data` })
|
||||
setConfirmOpen(false);
|
||||
setConfirmLoading(false);
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 1000);
|
||||
window.location.href = "/";
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
async function confirmReset() {
|
||||
|
||||
Reference in New Issue
Block a user