mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Merge pull request #3575 from beingindot/account_validation
Account validation
This commit is contained in:
commit
7e08d66a5d
@ -66,7 +66,7 @@ public class ClearXchangeForm extends PaymentMethodForm {
|
||||
Res.get("payment.account.owner"));
|
||||
holderNameInputTextField.setValidator(inputValidator);
|
||||
holderNameInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
|
||||
clearXchangeAccount.setHolderName(newValue);
|
||||
clearXchangeAccount.setHolderName(newValue.trim());
|
||||
updateFromInputs();
|
||||
});
|
||||
|
||||
@ -74,7 +74,7 @@ public class ClearXchangeForm extends PaymentMethodForm {
|
||||
Res.get("payment.email.mobile"));
|
||||
mobileNrInputTextField.setValidator(clearXchangeValidator);
|
||||
mobileNrInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
|
||||
clearXchangeAccount.setEmailOrMobileNr(newValue);
|
||||
clearXchangeAccount.setEmailOrMobileNr(newValue.trim());
|
||||
updateFromInputs();
|
||||
});
|
||||
final TradeCurrency singleTradeCurrency = clearXchangeAccount.getSingleTradeCurrency();
|
||||
|
@ -65,14 +65,14 @@ public class PopmoneyForm extends PaymentMethodForm {
|
||||
Res.get("payment.account.owner"));
|
||||
holderNameInputTextField.setValidator(inputValidator);
|
||||
holderNameInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
|
||||
account.setHolderName(newValue);
|
||||
account.setHolderName(newValue.trim());
|
||||
updateFromInputs();
|
||||
});
|
||||
|
||||
accountIdInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow, Res.get("payment.popmoney.accountId"));
|
||||
accountIdInputTextField.setValidator(validator);
|
||||
accountIdInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
|
||||
account.setAccountId(newValue);
|
||||
account.setAccountId(newValue.trim());
|
||||
updateFromInputs();
|
||||
});
|
||||
|
||||
|
@ -77,7 +77,7 @@ public class RevolutForm extends PaymentMethodForm {
|
||||
accountIdInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow, Res.get("payment.revolut.phoneNr"));
|
||||
accountIdInputTextField.setValidator(validator);
|
||||
accountIdInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
|
||||
account.setAccountId(newValue);
|
||||
account.setAccountId(newValue.trim());
|
||||
updateFromInputs();
|
||||
});
|
||||
|
||||
|
@ -67,7 +67,7 @@ public class UpholdForm extends PaymentMethodForm {
|
||||
accountIdInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow, Res.get("payment.uphold.accountId"));
|
||||
accountIdInputTextField.setValidator(upholdValidator);
|
||||
accountIdInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
|
||||
upholdAccount.setAccountId(newValue);
|
||||
upholdAccount.setAccountId(newValue.trim());
|
||||
updateFromInputs();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user