From 66136b7dfa06a150089fdddd0705aef60aeada4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sat, 21 Sep 2019 07:56:19 +0800 Subject: User show slot result gets checked first by controller and only if the result is not null, implying the login is successful, then it will do a ticket search based on the logged in user's name. --- LoginPassword.qml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'LoginPassword.qml') diff --git a/LoginPassword.qml b/LoginPassword.qml index 8b65a11..d2e8064 100644 --- a/LoginPassword.qml +++ b/LoginPassword.qml @@ -4,20 +4,15 @@ import "larva/features" LoginPasswordForm { emailTextLabel.text: User.name - - passwordTextField.onTextChanged: { + passwordTextField.onTextChanged: if (!passwordTextField.text || !continueButton.enabled) continueButton.enabled = !continueButton.enabled - } continueButton { icon.source: "assets/arrow-forward-24px.svg" onClicked: { User.password = passwordTextField.text - onClicked: { - onboarding.logIn(User.name, User.password) - onboarding.ticketSearch(User.name) - } + onboarding.logIn(User.name, User.password) } } } -- cgit v1.2.3