summaryrefslogtreecommitdiff
path: root/pages/Email.qml
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 20:30:57 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 20:30:57 +0800
commit5a1af88645a0889855dd121ad767f56317fa24f8 (patch)
tree47b7a441cbf7efbe99dd9e3fbd53458bfee0f3eb /pages/Email.qml
parent889ce312ff1918714f30eed0e34cc87d1fe7863f (diff)
Next button on e-mail input is disabled by default
and enabled if there is text on the e-mail field
Diffstat (limited to 'pages/Email.qml')
-rw-r--r--pages/Email.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/pages/Email.qml b/pages/Email.qml
index e489753..22dc412 100644
--- a/pages/Email.qml
+++ b/pages/Email.qml
@@ -6,6 +6,13 @@ EmailForm {
height: stackView.height
backButton.onClicked: stackView.pop()
+ emailTextField.onTextChanged: {
+ if (!emailTextField.text)
+ loginButton.enabled = false
+ else if (!loginButton.enabled)
+ loginButton.enabled = true
+ }
+
loginButton.onClicked: {
User.name = emailTextField.text
stackView.push("qrc:/pages/Password.qml")