parent
361c563a4b
commit
b22f0d8a58
|
@ -14,6 +14,12 @@ ModalPopup {
|
||||||
property string accountNameValidationError: ""
|
property string accountNameValidationError: ""
|
||||||
property bool loading: false
|
property bool loading: false
|
||||||
|
|
||||||
|
function reset() {
|
||||||
|
passwordInput.text = ""
|
||||||
|
accountNameInput.text = ""
|
||||||
|
accountSeedInput.text = ""
|
||||||
|
}
|
||||||
|
|
||||||
function validate() {
|
function validate() {
|
||||||
if (passwordInput.text === "") {
|
if (passwordInput.text === "") {
|
||||||
//% "You need to enter a password"
|
//% "You need to enter a password"
|
||||||
|
@ -131,7 +137,7 @@ ModalPopup {
|
||||||
accountError.text = error
|
accountError.text = error
|
||||||
return accountError.open()
|
return accountError.open()
|
||||||
}
|
}
|
||||||
|
popup.reset()
|
||||||
popup.close();
|
popup.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue