From 3af8c0beee1e2c331f562a90ffaacd07fd8c0265 Mon Sep 17 00:00:00 2001 From: Erik Prabowo Kamal Date: Sat, 31 Aug 2019 12:01:16 +0800 Subject: Label on password form shows input e-mail address --- pages/Password.qml | 10 ++++++---- pages/PasswordForm.ui.qml | 2 ++ 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 -- cgit v1.2.3