summaryrefslogtreecommitdiff
path: root/Password.qml
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-19 22:15:47 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-19 22:15:47 +0800
commitb7baeea2ab0f999a755226b79242f78a472d5a80 (patch)
tree64a3f77287ca1f4af365ab1d911079bd417ca574 /Password.qml
parent7362b70f98e88f6a4118f79744c6f358abd730de (diff)
Replaced UIs whose replacements are ready in Larva
and reorganise logical QML files
Diffstat (limited to 'Password.qml')
-rw-r--r--Password.qml23
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")
+ }
+}