diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 20:40:02 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 20:40:02 +0800 |
commit | 6f35c27b3d4343f22f65955c5d63cae03cb76c3d (patch) | |
tree | 80d8f1da51787077b4401bee171bf80c1b2fd712 /pages/ConfirmPassword.qml | |
parent | 4045c2885e1446dd159263315ea70af41cd11e53 (diff) |
Next button on password input is disabled until there is input text
Diffstat (limited to 'pages/ConfirmPassword.qml')
-rw-r--r-- | pages/ConfirmPassword.qml | 5 |
1 files changed, 5 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: { |