From cc446fb707f724715b7006d98934a68a51f7dac6 Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Fri, 26 Oct 2018 21:48:41 -0500 Subject: [PATCH] Add warning popup for cash deposit --- core/src/main/resources/i18n/displayStrings.properties | 3 +++ .../account/content/fiataccounts/FiatAccountsView.java | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/core/src/main/resources/i18n/displayStrings.properties b/core/src/main/resources/i18n/displayStrings.properties index b23c9f66580..377e445756e 100644 --- a/core/src/main/resources/i18n/displayStrings.properties +++ b/core/src/main/resources/i18n/displayStrings.properties @@ -2212,6 +2212,9 @@ payment.limits.info=Please be aware that all bank transfers carry a certain amou \n\ Please note that there are no limits on the total number of times you can trade. +payment.cashDeposit.info=Please confirm your bank allows you to send cash deposits into other peoples' accounts. \ + For example, Bank of America and Wells Fargo no longer allow such deposits. + payment.f2f.contact=Contact info payment.f2f.contact.prompt=How you want to get contacted by the trading peer? (email address, phone number,...) payment.f2f.city=City for 'Face to face' meeting diff --git a/desktop/src/main/java/bisq/desktop/main/account/content/fiataccounts/FiatAccountsView.java b/desktop/src/main/java/bisq/desktop/main/account/content/fiataccounts/FiatAccountsView.java index d32aace01bf..59a06925ffd 100644 --- a/desktop/src/main/java/bisq/desktop/main/account/content/fiataccounts/FiatAccountsView.java +++ b/desktop/src/main/java/bisq/desktop/main/account/content/fiataccounts/FiatAccountsView.java @@ -77,6 +77,7 @@ import bisq.core.app.BisqEnvironment; import bisq.core.locale.Res; import bisq.core.payment.AccountAgeWitnessService; +import bisq.core.payment.CashDepositAccount; import bisq.core.payment.ClearXchangeAccount; import bisq.core.payment.F2FAccount; import bisq.core.payment.HalCashAccount; @@ -293,6 +294,13 @@ private void onSaveNewAccount(PaymentAccount paymentAccount) { .actionButtonText(Res.get("shared.iUnderstand")) .onAction(() -> doSaveNewAccount(paymentAccount)) .show(); + } else if (paymentAccount instanceof CashDepositAccount) { + new Popup<>().information(Res.get("payment.cashDeposit.info")) + .width(700) + .closeButtonText(Res.get("shared.cancel")) + .actionButtonText(Res.get("shared.iConfirm")) + .onAction(() -> doSaveNewAccount(paymentAccount)) + .show(); } else { doSaveNewAccount(paymentAccount); }