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

EmailForm {
	width: stackView.width
	height: stackView.height
	backButton.onClicked: stackView.pop()
    instructionLabel.text: qsTr("Enter your email")

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

	loginButton.onClicked: {
		User.name = emailTextField.text
		stackView.push("qrc:/pages/LoginPass.qml")
	}
}