summaryrefslogtreecommitdiff
path: root/Login.qml
blob: 290240737fb7596ce679b0470841a88a4b79b978 (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 "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: {
			contentView.push("LoginPassword.qml", {
				"name": emailTextField.text
			})
		}
	}
}