summaryrefslogtreecommitdiff
path: root/Email.qml
blob: a1951fea34f7be6bcda3b65e0767821364ea7d19 (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: "assets/arrow-back-24px.svg"
		onClicked: pageView.pop()
	}

    emailImage.source: "assets/email-24px.svg"

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

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