summaryrefslogtreecommitdiff
path: root/LoginPassword.qml
blob: 5e510d2a6b80efa107c5c03e5879109229f4c235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)
		}
	}
}