From f51077b2be77a88c404f564ae5b03359841065c0 Mon Sep 17 00:00:00 2001 From: "vladimir.kuznetsov" Date: Thu, 14 Mar 2024 15:59:16 +0500 Subject: [PATCH] fixed checking credentials for spaces --- client/ui/qml/Pages2/PageSetupWizardCredentials.qml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/client/ui/qml/Pages2/PageSetupWizardCredentials.qml b/client/ui/qml/Pages2/PageSetupWizardCredentials.qml index c256f3a4..3e6205c6 100644 --- a/client/ui/qml/Pages2/PageSetupWizardCredentials.qml +++ b/client/ui/qml/Pages2/PageSetupWizardCredentials.qml @@ -56,8 +56,8 @@ PageType { regularExpression: InstallController.ipAddressPortRegExp() } - onFocusChanged: { - textField.text = textField.text.replace(/^\s+|\s+$/g, ''); + textField.onFocusChanged: { + textField.text = textField.text.replace(/^\s+|\s+$/g, '') } KeyNavigation.tab: username.textField @@ -70,6 +70,10 @@ PageType { headerText: qsTr("Login to connect via SSH") textFieldPlaceholderText: "root" + textField.onFocusChanged: { + textField.text = textField.text.replace(/^\s+|\s+$/g, '') + } + KeyNavigation.tab: secretData.textField } @@ -88,8 +92,8 @@ PageType { hidePassword = !hidePassword } - onFocusChanged: { - textField.text = textField.text.replace(/^\s+|\s+$/g, ''); + textField.onFocusChanged: { + textField.text = textField.text.replace(/^\s+|\s+$/g, '') } KeyNavigation.tab: continueButton