mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-01 01:32:17 +01:00
OfferBookView: Show ARS blue rate popup if selected
This commit is contained in:
parent
680a8b1760
commit
6c1e45eb53
1 changed files with 7 additions and 1 deletions
|
@ -31,6 +31,7 @@ import bisq.desktop.components.InfoAutoTooltipLabel;
|
||||||
import bisq.desktop.components.PeerInfoIconMap;
|
import bisq.desktop.components.PeerInfoIconMap;
|
||||||
import bisq.desktop.components.PeerInfoIconTrading;
|
import bisq.desktop.components.PeerInfoIconTrading;
|
||||||
import bisq.desktop.components.TitledGroupBg;
|
import bisq.desktop.components.TitledGroupBg;
|
||||||
|
import bisq.desktop.components.paymentmethods.ArsBlueRatePopup;
|
||||||
import bisq.desktop.main.MainView;
|
import bisq.desktop.main.MainView;
|
||||||
import bisq.desktop.main.account.AccountView;
|
import bisq.desktop.main.account.AccountView;
|
||||||
import bisq.desktop.main.account.content.altcoinaccounts.AltCoinAccountsView;
|
import bisq.desktop.main.account.content.altcoinaccounts.AltCoinAccountsView;
|
||||||
|
@ -363,12 +364,17 @@ abstract public class OfferBookView<R extends GridPane, M extends OfferBookViewM
|
||||||
currencyComboBox.setOnChangeConfirmed(e -> {
|
currencyComboBox.setOnChangeConfirmed(e -> {
|
||||||
if (currencyComboBox.getEditor().getText().isEmpty())
|
if (currencyComboBox.getEditor().getText().isEmpty())
|
||||||
currencyComboBox.getSelectionModel().select(SHOW_ALL);
|
currencyComboBox.getSelectionModel().select(SHOW_ALL);
|
||||||
model.onSetTradeCurrency(currencyComboBox.getSelectionModel().getSelectedItem());
|
TradeCurrency selectedCurrency = currencyComboBox.getSelectionModel().getSelectedItem();
|
||||||
|
model.onSetTradeCurrency(selectedCurrency);
|
||||||
paymentMethodComboBox.setAutocompleteItems(model.getPaymentMethods());
|
paymentMethodComboBox.setAutocompleteItems(model.getPaymentMethods());
|
||||||
model.updateSelectedPaymentMethod();
|
model.updateSelectedPaymentMethod();
|
||||||
updatePaymentMethodComboBoxEditor();
|
updatePaymentMethodComboBoxEditor();
|
||||||
model.onSetPaymentMethod(paymentMethodComboBox.getSelectionModel().getSelectedItem());
|
model.onSetPaymentMethod(paymentMethodComboBox.getSelectionModel().getSelectedItem());
|
||||||
updateCreateOfferButton();
|
updateCreateOfferButton();
|
||||||
|
|
||||||
|
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(selectedCurrency)) {
|
||||||
|
ArsBlueRatePopup.showMaybe();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
updateCurrencyComboBoxFromModel();
|
updateCurrencyComboBoxFromModel();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue