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

EmailForm {
	backButton {
		icon.source: "larva/components/icons/arrow-back-24px.svg"
		onClicked: pageView.pop()
	}

	emailImage.source: "larva/components/icons/email-24px.svg"

	emailTextField.onTextChanged: {
		if (!emailTextField.text || !loginButton.enabled)
			loginButton.enabled = !loginButton.enabled
	}

	loginButton.onClicked: {
		User.emailAddress = emailTextField.text
		pageView.push("Password.qml")
	}
}