mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
Add info popup for MKR and DAO
This commit is contained in:
parent
89a9300c8a
commit
30c568af8b
@ -30,6 +30,7 @@ import io.bitsquare.gui.util.FormBuilder;
|
|||||||
import io.bitsquare.gui.util.ImageUtil;
|
import io.bitsquare.gui.util.ImageUtil;
|
||||||
import io.bitsquare.gui.util.Layout;
|
import io.bitsquare.gui.util.Layout;
|
||||||
import io.bitsquare.gui.util.validation.*;
|
import io.bitsquare.gui.util.validation.*;
|
||||||
|
import io.bitsquare.locale.TradeCurrency;
|
||||||
import io.bitsquare.payment.PaymentAccount;
|
import io.bitsquare.payment.PaymentAccount;
|
||||||
import io.bitsquare.payment.PaymentAccountFactory;
|
import io.bitsquare.payment.PaymentAccountFactory;
|
||||||
import io.bitsquare.payment.PaymentMethod;
|
import io.bitsquare.payment.PaymentMethod;
|
||||||
@ -123,6 +124,18 @@ public class AltCoinAccountsView extends ActivatableViewAndModel<GridPane, AltCo
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
private void onSaveNewAccount(PaymentAccount paymentAccount) {
|
private void onSaveNewAccount(PaymentAccount paymentAccount) {
|
||||||
|
TradeCurrency selectedTradeCurrency = paymentAccount.getSelectedTradeCurrency();
|
||||||
|
String code = selectedTradeCurrency.getCode();
|
||||||
|
if (code.equals("MKR") || code.equals("DAO")) {
|
||||||
|
new Popup().information("Please be sure that you follow the requirements for the usage of " +
|
||||||
|
selectedTradeCurrency.getCodeAndName() + " wallets as described on the " +
|
||||||
|
selectedTradeCurrency.getName() + " web page.\n" +
|
||||||
|
"Using wallets from centralized exchanges where you don't have your keys under your control or " +
|
||||||
|
"using a not compatible wallet software can lead to loss of the traded funds!\n" +
|
||||||
|
"The arbitrator is not a " + selectedTradeCurrency.getName() + " specialist and cannot help in such cases.")
|
||||||
|
.closeButtonText("I understand and confirm that I know which wallet I need to use.")
|
||||||
|
.show();
|
||||||
|
}
|
||||||
if (!model.getPaymentAccounts().stream().filter(e -> {
|
if (!model.getPaymentAccounts().stream().filter(e -> {
|
||||||
if (e.getAccountName() != null)
|
if (e.getAccountName() != null)
|
||||||
return e.getAccountName().equals(paymentAccount.getAccountName());
|
return e.getAccountName().equals(paymentAccount.getAccountName());
|
||||||
|
Loading…
Reference in New Issue
Block a user