diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-16 21:21:22 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-16 21:21:22 +0800 |
commit | 5a586260aeab91d53e9316bf3395a34a91cd8cc0 (patch) | |
tree | a8b29b4097c78463ada8716c32f28e4d2a0670a8 /pages/LoginName.qml | |
parent | 1be4acfe8c0368b5f464d8f1ee3e9cc6f862662a (diff) |
Login flow
for registered accounts
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") + } +} |