diff options
Diffstat (limited to 'Password.qml')
-rw-r--r-- | Password.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Password.qml b/Password.qml new file mode 100644 index 0000000..6792c1e --- /dev/null +++ b/Password.qml @@ -0,0 +1,23 @@ +import QtQuick 2.12 +import KelakonUser 0.1 +import "pages" + +PasswordForm { + backButton { + icon.source: "larva/components/icons/arrow-back-24px.svg" + onClicked: pageView.pop() + } + + passImage.source: "larva/components/icons/lock-24px.svg" + emailAddressLabel.text: User.name + + passTextField.onTextChanged: { + if (!passTextField.text || !createPassButton.enabled) + createPassButton.enabled = !createPassButton.enabled + } + + createPassButton.onClicked: { + User.password = passTextField.text + pageView.push("ConfirmPassword.qml") + } +} |