summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Prabowo Kamal <erik@darapsa.co.id>2019-08-31 12:01:16 +0800
committerErik Prabowo Kamal <erik@darapsa.co.id>2019-08-31 12:01:16 +0800
commit3af8c0beee1e2c331f562a90ffaacd07fd8c0265 (patch)
treee0d8c8143e51858d910244a3eb0cb1831488827e
parent525b3eaf3a55ea4acf1d41189a573a54901b4426 (diff)
Label on password form shows input e-mail address
-rw-r--r--pages/Password.qml10
-rw-r--r--pages/PasswordForm.ui.qml2
2 files changed, 8 insertions, 4 deletions
diff --git a/pages/Password.qml b/pages/Password.qml
index a499a65..befeea5 100644
--- a/pages/Password.qml
+++ b/pages/Password.qml
@@ -12,9 +12,11 @@ PasswordForm {
}
createPassButton {
- onClicked: {
- User.password = passTextField.text
- RTClient.logIn(User.emailAddress, User.password)
- }
+ onClicked: {
+ User.password = passTextField.text
+ RTClient.logIn(User.emailAddress, User.password)
+ }
}
+
+ emailAddressLabel.text: User.emailAddress
}
diff --git a/pages/PasswordForm.ui.qml b/pages/PasswordForm.ui.qml
index 98c90a2..757017b 100644
--- a/pages/PasswordForm.ui.qml
+++ b/pages/PasswordForm.ui.qml
@@ -11,6 +11,7 @@ Rectangle {
property alias backButton: backButton
property alias passTextField: passTextField
property alias createPassButton: createPassButton
+ property alias emailAddressLabel: emailAddressLabel
Rectangle {
id: appBar
@@ -66,6 +67,7 @@ Rectangle {
anchors.bottomMargin: 16
Label {
+ id: emailAddressLabel
anchors.right: parent.right
anchors.rightMargin: 16
anchors.left: parent.left