summaryrefslogtreecommitdiff
path: root/LoginPassword.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 /LoginPassword.qml
parent7362b70f98e88f6a4118f79744c6f358abd730de (diff)
Replaced UIs whose replacements are ready in Larva
and reorganise logical QML files
Diffstat (limited to 'LoginPassword.qml')
-rw-r--r--LoginPassword.qml20
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)
+ }
+ }
+}