From 6272e8647f19cf9d12ed1f3caef9e1c31e4150d6 Mon Sep 17 00:00:00 2001 From: Erik Prabowo Kamal Date: Sat, 31 Aug 2019 13:07:00 +0800 Subject: Set up flows from password form to profile creation form --- pages/Password.qml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'pages/Password.qml') diff --git a/pages/Password.qml b/pages/Password.qml index befeea5..4a1ae59 100644 --- a/pages/Password.qml +++ b/pages/Password.qml @@ -1,22 +1,21 @@ import QtQuick 2.12 import id.co.darapsa.kelakon.user 0.1 -import id.co.darapsa.kelakon.rtclient 0.1 PasswordForm { - width: stackView.width - height: stackView.height - backButton { - onClicked: { - stackView.pop() - } - } + width: stackView.width + height: stackView.height + backButton { + onClicked: { + stackView.pop() + } + } - createPassButton { - onClicked: { - User.password = passTextField.text - RTClient.logIn(User.emailAddress, User.password) - } - } + emailAddressLabel.text: User.emailAddress - emailAddressLabel.text: User.emailAddress + createPassButton { + onClicked: { + User.password = passTextField.text + stackView.push("qrc:/pages/ConfirmPassword.qml") + } + } } -- cgit v1.2.3