Hide previous errors when clicking accept buttons
This commit is contained in:
parent
02888eb63d
commit
35a4030cc0
|
@ -17,6 +17,7 @@ HBox {
|
||||||
buttonCallbacks: ({
|
buttonCallbacks: ({
|
||||||
apply: button => {
|
apply: button => {
|
||||||
button.loading = true
|
button.loading = true
|
||||||
|
errorMessage.text = ""
|
||||||
|
|
||||||
let args = [
|
let args = [
|
||||||
nameField.text || null,
|
nameField.text || null,
|
||||||
|
|
|
@ -18,6 +18,7 @@ HBox {
|
||||||
buttonCallbacks: ({
|
buttonCallbacks: ({
|
||||||
apply: button => {
|
apply: button => {
|
||||||
button.loading = true
|
button.loading = true
|
||||||
|
errorMessage.text = ""
|
||||||
|
|
||||||
let args = [roomField.text]
|
let args = [roomField.text]
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,8 @@ HPage {
|
||||||
|
|
||||||
login: button => {
|
login: button => {
|
||||||
button.loading = true
|
button.loading = true
|
||||||
|
errorMessage.text = ""
|
||||||
|
|
||||||
let args = [
|
let args = [
|
||||||
idField.text, passwordField.text,
|
idField.text, passwordField.text,
|
||||||
undefined, serverField.text,
|
undefined, serverField.text,
|
||||||
|
|
|
@ -36,6 +36,7 @@ BoxPopup {
|
||||||
let password = passwordField.text
|
let password = passwordField.text
|
||||||
okClicked = true
|
okClicked = true
|
||||||
button.loading = true
|
button.loading = true
|
||||||
|
errorMessage.text = ""
|
||||||
|
|
||||||
verifyPassword(password, result => {
|
verifyPassword(password, result => {
|
||||||
if (result === true) {
|
if (result === true) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user