diff options
Diffstat (limited to 'pages/LoginName.qml')
-rw-r--r-- | pages/LoginName.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pages/LoginName.qml b/pages/LoginName.qml new file mode 100644 index 0000000..72b069b --- /dev/null +++ b/pages/LoginName.qml @@ -0,0 +1,19 @@ +import QtQuick 2.12 +import KelakonUser 0.1 + +EmailForm { + width: stackView.width + height: stackView.height + backButton.onClicked: stackView.pop() + instructionLabel.text: qsTr("Enter e-mail") + + emailTextField.onTextChanged: { + if (!emailTextField.text || !loginButton.enabled) + loginButton.enabled = !loginButton.enabled + } + + loginButton.onClicked: { + User.name = emailTextField.text + stackView.push("qrc:/pages/LoginPass.qml") + } +} |