summaryrefslogtreecommitdiff
path: root/LoginPassword.qml
blob: 8b65a1144e652249753b1dc0b8fafba894826dd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick 2.12
import KelakonUser 0.1
import "larva/features"

LoginPasswordForm {
	emailTextLabel.text: User.name

	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)
			}
		}
	}
}