mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-09-22 14:04:44 -04:00
currency combo box is disabled on confirming offer
This commit is contained in:
parent
26237644f8
commit
ea1bac241a
1 changed files with 6 additions and 4 deletions
|
@ -149,7 +149,7 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel<?>> exten
|
||||||
private ComboBox<PaymentAccount> paymentAccountsComboBox;
|
private ComboBox<PaymentAccount> paymentAccountsComboBox;
|
||||||
private ComboBox<TradeCurrency> currencyComboBox;
|
private ComboBox<TradeCurrency> currencyComboBox;
|
||||||
private ImageView qrCodeImageView;
|
private ImageView qrCodeImageView;
|
||||||
private VBox currencySelection, fixedPriceBox, percentagePriceBox, currencyTextFieldBox, triggerPriceVBox;
|
private VBox paymentAccountsSelection, currencySelection, fixedPriceBox, percentagePriceBox, currencyTextFieldBox, triggerPriceVBox;
|
||||||
private HBox fundingHBox, firstRowHBox, secondRowHBox, placeOfferBox, amountValueCurrencyBox,
|
private HBox fundingHBox, firstRowHBox, secondRowHBox, placeOfferBox, amountValueCurrencyBox,
|
||||||
priceAsPercentageValueCurrencyBox, volumeValueCurrencyBox, priceValueCurrencyBox,
|
priceAsPercentageValueCurrencyBox, volumeValueCurrencyBox, priceValueCurrencyBox,
|
||||||
minAmountValueCurrencyBox, securityDepositAndFeeBox, triggerPriceHBox;
|
minAmountValueCurrencyBox, securityDepositAndFeeBox, triggerPriceHBox;
|
||||||
|
@ -425,7 +425,8 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel<?>> exten
|
||||||
totalToPayTextField.setContentForInfoPopOver(createInfoPopover());
|
totalToPayTextField.setContentForInfoPopOver(createInfoPopover());
|
||||||
});
|
});
|
||||||
|
|
||||||
paymentAccountsComboBox.setDisable(true);
|
paymentAccountsSelection.setDisable(true);
|
||||||
|
currencySelection.setDisable(true);
|
||||||
|
|
||||||
editOfferElements.forEach(node -> {
|
editOfferElements.forEach(node -> {
|
||||||
node.setMouseTransparent(true);
|
node.setMouseTransparent(true);
|
||||||
|
@ -995,8 +996,9 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel<?>> exten
|
||||||
final Tuple3<VBox, Label, ComboBox<TradeCurrency>> currencyBoxTuple = addTopLabelComboBox(
|
final Tuple3<VBox, Label, ComboBox<TradeCurrency>> currencyBoxTuple = addTopLabelComboBox(
|
||||||
Res.get("shared.currency"), Res.get("list.currency.select"));
|
Res.get("shared.currency"), Res.get("list.currency.select"));
|
||||||
|
|
||||||
|
paymentAccountsSelection = tradingAccountBoxTuple.first;
|
||||||
currencySelection = currencyBoxTuple.first;
|
currencySelection = currencyBoxTuple.first;
|
||||||
paymentGroupBox.getChildren().addAll(tradingAccountBoxTuple.first, currencySelection);
|
paymentGroupBox.getChildren().addAll(paymentAccountsSelection, currencySelection);
|
||||||
|
|
||||||
GridPane.setRowIndex(paymentGroupBox, gridRow);
|
GridPane.setRowIndex(paymentGroupBox, gridRow);
|
||||||
GridPane.setColumnSpan(paymentGroupBox, 2);
|
GridPane.setColumnSpan(paymentGroupBox, 2);
|
||||||
|
@ -1008,7 +1010,7 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel<?>> exten
|
||||||
paymentAccountsComboBox.setMinWidth(tradingAccountBoxTuple.first.getMinWidth());
|
paymentAccountsComboBox.setMinWidth(tradingAccountBoxTuple.first.getMinWidth());
|
||||||
paymentAccountsComboBox.setPrefWidth(tradingAccountBoxTuple.first.getMinWidth());
|
paymentAccountsComboBox.setPrefWidth(tradingAccountBoxTuple.first.getMinWidth());
|
||||||
paymentAccountsComboBox.getStyleClass().add("input-with-border");
|
paymentAccountsComboBox.getStyleClass().add("input-with-border");
|
||||||
editOfferElements.add(tradingAccountBoxTuple.first);
|
editOfferElements.add(paymentAccountsSelection);
|
||||||
|
|
||||||
// we display either currencyComboBox (multi currency account) or currencyTextField (single)
|
// we display either currencyComboBox (multi currency account) or currencyTextField (single)
|
||||||
currencyComboBox = currencyBoxTuple.third;
|
currencyComboBox = currencyBoxTuple.third;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue