summaryrefslogtreecommitdiff
path: root/pages/Email.qml
diff options
context:
space:
mode:
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")