From 6f35c27b3d4343f22f65955c5d63cae03cb76c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Thu, 12 Sep 2019 20:40:02 +0800 Subject: Next button on password input is disabled until there is input text --- pages/ConfirmPassword.qml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pages/ConfirmPassword.qml') 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: { -- cgit v1.2.3