From b22f0d8a58d1e1bab2db216f69cd67a385dae424 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Fri, 11 Sep 2020 13:34:52 +0200 Subject: [PATCH] fix(Wallet): reset add account modal Fixes #890 --- .../AppLayouts/Wallet/components/AddAccountWithSeed.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Wallet/components/AddAccountWithSeed.qml b/ui/app/AppLayouts/Wallet/components/AddAccountWithSeed.qml index 9ada865437..5ef1be3fd1 100644 --- a/ui/app/AppLayouts/Wallet/components/AddAccountWithSeed.qml +++ b/ui/app/AppLayouts/Wallet/components/AddAccountWithSeed.qml @@ -14,6 +14,12 @@ ModalPopup { property string accountNameValidationError: "" property bool loading: false + function reset() { + passwordInput.text = "" + accountNameInput.text = "" + accountSeedInput.text = "" + } + function validate() { if (passwordInput.text === "") { //% "You need to enter a password" @@ -131,7 +137,7 @@ ModalPopup { accountError.text = error return accountError.open() } - + popup.reset() popup.close(); } }