diff options
Diffstat (limited to 'LoginPassword.qml')
-rw-r--r-- | LoginPassword.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/LoginPassword.qml b/LoginPassword.qml new file mode 100644 index 0000000..5e510d2 --- /dev/null +++ b/LoginPassword.qml @@ -0,0 +1,20 @@ +import QtQuick 2.12 +import KelakonUser 0.1 +import "larva/features" + +LoginPasswordForm { + emailTextLabel.text: User.name + + passwordTextField.onTextChanged: { + if (!passwordTextField.text || !continueButton.enabled) + continueButton.enabled = !continueButton.enabled + } + + continueButton { + icon.source: "assets/arrow-forward-24px.svg" + onClicked: { + User.password = passwordTextField.text + onClicked: onboarding.logIn(User.name, User.password) + } + } +} |