Hide previous errors when clicking accept buttons

This commit is contained in:
miruka 2019-11-09 11:15:24 -04:00
parent 02888eb63d
commit 35a4030cc0
4 changed files with 12 additions and 7 deletions

View File

@ -17,6 +17,7 @@ HBox {
buttonCallbacks: ({
apply: button => {
button.loading = true
errorMessage.text = ""
let args = [
nameField.text || null,

View File

@ -18,6 +18,7 @@ HBox {
buttonCallbacks: ({
apply: button => {
button.loading = true
errorMessage.text = ""
let args = [roomField.text]

View File

@ -27,6 +27,8 @@ HPage {
login: button => {
button.loading = true
errorMessage.text = ""
let args = [
idField.text, passwordField.text,
undefined, serverField.text,

View File

@ -36,6 +36,7 @@ BoxPopup {
let password = passwordField.text
okClicked = true
button.loading = true
errorMessage.text = ""
verifyPassword(password, result => {
if (result === true) {