Skip to content

Commit

Permalink
show SWIFT helper popup before new account form filled in
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacxx committed Aug 24, 2021
1 parent a69a746 commit 53bc2b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import bisq.desktop.components.AutoTooltipButton;
import bisq.desktop.components.InputTextField;
import bisq.desktop.main.overlays.popups.Popup;
import bisq.desktop.main.overlays.windows.SwiftPaymentDetails;
import bisq.desktop.util.GUIUtil;
import bisq.desktop.util.Layout;
Expand Down Expand Up @@ -80,6 +81,10 @@ public SwiftForm(PaymentAccount paymentAccount,

@Override
public void addFormForAddAccount() {
new Popup().information(Res.get("payment.swift.info"))
.width(900)
.closeButtonText(Res.get("shared.iUnderstand"))
.show();
gridRowFrom = gridRow + 1;
addFieldsForBankEdit(true, this::setBankSwiftCode, this::setBankName, this::setBankBranch, this::setBankAddress);
addFieldsForBankEdit(false, this::setIntermediarySwiftCode, this::setIntermediaryName, this::setIntermediaryBranch, this::setIntermediaryAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
import bisq.core.payment.PaymentAccount;
import bisq.core.payment.PaymentAccountFactory;
import bisq.core.payment.RevolutAccount;
import bisq.core.payment.SwiftAccount;
import bisq.core.payment.USPostalMoneyOrderAccount;
import bisq.core.payment.WesternUnionAccount;
import bisq.core.payment.payload.PaymentMethod;
Expand Down Expand Up @@ -346,13 +345,6 @@ private void onSaveNewAccount(PaymentAccount paymentAccount) {
.actionButtonText(Res.get("shared.iUnderstand"))
.onAction(() -> doSaveNewAccount(paymentAccount))
.show();
} else if (paymentAccount instanceof SwiftAccount) {
new Popup().information(Res.get("payment.swift.info", currencyName, currencyName))
.width(900)
.closeButtonText(Res.get("shared.cancel"))
.actionButtonText(Res.get("shared.iUnderstand"))
.onAction(() -> doSaveNewAccount(paymentAccount))
.show();
} else {
doSaveNewAccount(paymentAccount);
}
Expand Down

0 comments on commit 53bc2b2

Please sign in to comment.