fix(Wallet): reset add account modal

Fixes #890
This commit is contained in:
Pascal Precht 2020-09-11 13:34:52 +02:00 committed by Iuri Matias
parent 361c563a4b
commit b22f0d8a58
1 changed files with 7 additions and 1 deletions

View File

@ -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();
}
}