summaryrefslogtreecommitdiff
path: root/Login.qml
blob: 4bff754115601ad86374c0afa1246bce022e1026 (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.15
import KelakonUser 0.1
import "larva/features"

LoginForm {
	toolButton.onClicked:
				if (pageView.depth > 1)
					pageView.pop()
				else
					drawer.open()

	contentView.initialItem: LoginEmailForm {
		emailTextField.onTextChanged: {
			if (!emailTextField.text || !continueButton.enabled)
				continueButton.enabled = !continueButton.enabled
		}

		continueButton.onClicked: {
			User.name = emailTextField.text
			contentView.push("LoginPassword.qml")
		}
	}
}