mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-01-26 22:37:03 -05:00
display N/A for buyer contact in seller step 2 form
This commit is contained in:
parent
0d2c1fe8fd
commit
e4714aab89
@ -52,15 +52,15 @@ public class F2FForm extends PaymentMethodForm {
|
||||
private final F2FValidator f2fValidator;
|
||||
private Country selectedCountry;
|
||||
|
||||
public static int addFormForBuyer(GridPane gridPane, int gridRow,
|
||||
PaymentAccountPayload paymentAccountPayload, Offer offer, double top) {
|
||||
public static int addStep2Form(GridPane gridPane, int gridRow,
|
||||
PaymentAccountPayload paymentAccountPayload, Offer offer, double top, boolean isBuyer) {
|
||||
F2FAccountPayload f2fAccountPayload = (F2FAccountPayload) paymentAccountPayload;
|
||||
addCompactTopLabelTextFieldWithCopyIcon(gridPane, ++gridRow, 0, Res.get("shared.country"),
|
||||
CountryUtil.getNameAndCode(f2fAccountPayload.getCountryCode()), top);
|
||||
addCompactTopLabelTextFieldWithCopyIcon(gridPane, gridRow, 1, Res.get("payment.f2f.city"),
|
||||
offer.getF2FCity(), top);
|
||||
addCompactTopLabelTextFieldWithCopyIcon(gridPane, ++gridRow, Res.get("payment.f2f.contact"),
|
||||
f2fAccountPayload.getContact());
|
||||
isBuyer ? f2fAccountPayload.getContact() : Res.get("shared.na"));
|
||||
TextArea textArea = addTopLabelTextArea(gridPane, gridRow, 1, Res.get("payment.shared.extraInfo"), "").second;
|
||||
textArea.setMinHeight(70);
|
||||
textArea.setEditable(false);
|
||||
|
@ -326,7 +326,7 @@ public class BuyerStep2View extends TradeStepView {
|
||||
case PaymentMethod.F2F_ID:
|
||||
checkNotNull(model.dataModel.getTrade(), "model.dataModel.getTrade() must not be null");
|
||||
checkNotNull(model.dataModel.getTrade().getOffer(), "model.dataModel.getTrade().getOffer() must not be null");
|
||||
gridRow = F2FForm.addFormForBuyer(gridPane, gridRow, paymentAccountPayload, model.dataModel.getTrade().getOffer(), 0);
|
||||
gridRow = F2FForm.addStep2Form(gridPane, gridRow, paymentAccountPayload, model.dataModel.getTrade().getOffer(), 0, true);
|
||||
break;
|
||||
case PaymentMethod.BLOCK_CHAINS_ID:
|
||||
case PaymentMethod.BLOCK_CHAINS_INSTANT_ID:
|
||||
|
@ -46,8 +46,8 @@ public class SellerStep2View extends TradeStepView {
|
||||
if (model.dataModel.getSellersPaymentAccountPayload() instanceof F2FAccountPayload) {
|
||||
addTitledGroupBg(gridPane, ++gridRow, 4,
|
||||
Res.get("portfolio.pending.step2_seller.f2fInfo.headline"), Layout.COMPACT_GROUP_DISTANCE);
|
||||
gridRow = F2FForm.addFormForBuyer(gridPane, --gridRow, model.dataModel.getSellersPaymentAccountPayload(),
|
||||
model.dataModel.getTrade().getOffer(), Layout.COMPACT_FIRST_ROW_AND_GROUP_DISTANCE);
|
||||
gridRow = F2FForm.addStep2Form(gridPane, --gridRow, model.dataModel.getSellersPaymentAccountPayload(),
|
||||
model.dataModel.getTrade().getOffer(), Layout.COMPACT_FIRST_ROW_AND_GROUP_DISTANCE, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user