diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/ConfirmPassword.qml | 5 | ||||
-rw-r--r-- | pages/Password.qml | 5 | ||||
-rw-r--r-- | pages/PasswordForm.ui.qml | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/pages/ConfirmPassword.qml b/pages/ConfirmPassword.qml index 3e1df7a..92543ce 100644 --- a/pages/ConfirmPassword.qml +++ b/pages/ConfirmPassword.qml @@ -10,6 +10,11 @@ PasswordForm { emailAddressLabel.text: User.name passTextField.placeholderText: qsTr("Re-enter Password") + passTextField.onTextChanged: { + if (!passTextField.text || !createPassButton.enabled) + createPassButton.enabled = !createPassButton.enabled + } + createPassButton { text: qsTr("Confirm password") onClicked: { diff --git a/pages/Password.qml b/pages/Password.qml index 2464af0..0b042c5 100644 --- a/pages/Password.qml +++ b/pages/Password.qml @@ -7,6 +7,11 @@ PasswordForm { backButton.onClicked: stackView.pop() emailAddressLabel.text: User.name + passTextField.onTextChanged: { + if (!passTextField.text || !createPassButton.enabled) + createPassButton.enabled = !createPassButton.enabled + } + createPassButton.onClicked: { User.password = passTextField.text stackView.push("qrc:/pages/ConfirmPassword.qml") diff --git a/pages/PasswordForm.ui.qml b/pages/PasswordForm.ui.qml index 95b88b3..887bf01 100644 --- a/pages/PasswordForm.ui.qml +++ b/pages/PasswordForm.ui.qml @@ -110,6 +110,7 @@ Rectangle { x: 34 y: 278 text: qsTr("Next") + enabled: false font.family: "Google Sans" font.capitalization: Font.MixedCase anchors.right: parent.right |