summaryrefslogtreecommitdiff
path: root/LoginPassword.qml
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-21 07:56:19 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-21 07:56:19 +0800
commit66136b7dfa06a150089fdddd0705aef60aeada4a (patch)
tree9819c772d59762fc710275bdfed410cb60c1b883 /LoginPassword.qml
parenta0653a4b7d95ed0217e7bcb9176b3f950f21fef8 (diff)
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.
Diffstat (limited to 'LoginPassword.qml')
-rw-r--r--LoginPassword.qml9
1 files changed, 2 insertions, 7 deletions
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)
}
}
}