mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
ignore popups in dev mode
This commit is contained in:
parent
f36d8241f3
commit
59b41c7a4f
@ -17,6 +17,7 @@
|
||||
|
||||
package io.bitsquare.gui.main.portfolio.pendingtrades.steps.buyer;
|
||||
|
||||
import io.bitsquare.app.BitsquareApp;
|
||||
import io.bitsquare.common.util.Tuple3;
|
||||
import io.bitsquare.gui.components.TextFieldWithCopyIcon;
|
||||
import io.bitsquare.gui.components.TitledGroupBg;
|
||||
@ -88,7 +89,7 @@ public class BuyerStep2View extends TradeStepView {
|
||||
"DO NOT use any additional notice in the reference text like " +
|
||||
"Bitcoin, Btc or Bitsquare.";
|
||||
|
||||
if (preferences.showAgain(key)) {
|
||||
if (!BitsquareApp.DEV_MODE && preferences.showAgain(key)) {
|
||||
preferences.dontShowAgain(key, true);
|
||||
new Popup().headLine("Attention required for trade with ID " + trade.getShortId())
|
||||
.attention(message)
|
||||
@ -219,7 +220,7 @@ public class BuyerStep2View extends TradeStepView {
|
||||
private void onPaymentStarted() {
|
||||
if (model.p2PService.isBootstrapped()) {
|
||||
String key = "confirmPaymentStarted";
|
||||
if (preferences.showAgain(key)) {
|
||||
if (!BitsquareApp.DEV_MODE && preferences.showAgain(key)) {
|
||||
Popup popup = new Popup();
|
||||
popup.headLine("Confirm that you have started the payment")
|
||||
.confirmation("Have you initiated the " + model.dataModel.getCurrencyCode() +
|
||||
|
@ -145,7 +145,7 @@ public class BuyerStep5View extends TradeStepView {
|
||||
withdrawAddressTextField.setText("mo6y756TnpdZQCeHStraavjqrndeXzVkxi");
|
||||
} else {
|
||||
String key = "tradeCompleted" + trade.getId();
|
||||
if (preferences.showAgain(key)) {
|
||||
if (!BitsquareApp.DEV_MODE && preferences.showAgain(key)) {
|
||||
preferences.dontShowAgain(key, true);
|
||||
new Notification().headLine("Trade completed")
|
||||
.notification("You can withdraw your funds now to your external Bitcoin wallet.")
|
||||
@ -180,7 +180,7 @@ public class BuyerStep5View extends TradeStepView {
|
||||
Coin receiverAmount = senderAmount.subtract(requiredFee);
|
||||
BSFormatter formatter = model.formatter;
|
||||
String key = "reviewWithdrawalAtTradeComplete";
|
||||
if (preferences.showAgain(key)) {
|
||||
if (!BitsquareApp.DEV_MODE && preferences.showAgain(key)) {
|
||||
new Popup().headLine("Confirm withdrawal request")
|
||||
.confirmation("Sending: " + formatter.formatCoinWithCode(senderAmount) + "\n" +
|
||||
"From address: " + fromAddresses + "\n" +
|
||||
@ -231,14 +231,16 @@ public class BuyerStep5View extends TradeStepView {
|
||||
}
|
||||
|
||||
private void handleTradeCompleted() {
|
||||
String key = "tradeCompleteWithdrawCompletedInfo";
|
||||
new Popup().headLine("Withdrawal completed")
|
||||
.feedback("Your completed trades are stored under \"Portfolio/History\".\n" +
|
||||
"You can review all your bitcoin transactions under \"Funds/Transactions\"")
|
||||
.actionButtonText("Go to \"Transactions\"")
|
||||
.onAction(() -> model.dataModel.navigation.navigateTo(MainView.class, FundsView.class, TransactionsView.class))
|
||||
.dontShowAgainId(key, preferences)
|
||||
.show();
|
||||
if (!BitsquareApp.DEV_MODE) {
|
||||
String key = "tradeCompleteWithdrawCompletedInfo";
|
||||
new Popup().headLine("Withdrawal completed")
|
||||
.feedback("Your completed trades are stored under \"Portfolio/History\".\n" +
|
||||
"You can review all your bitcoin transactions under \"Funds/Transactions\"")
|
||||
.actionButtonText("Go to \"Transactions\"")
|
||||
.onAction(() -> model.dataModel.navigation.navigateTo(MainView.class, FundsView.class, TransactionsView.class))
|
||||
.dontShowAgainId(key, preferences)
|
||||
.show();
|
||||
}
|
||||
useSavingsWalletButton.setDisable(true);
|
||||
withdrawToExternalWalletButton.setDisable(true);
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
package io.bitsquare.gui.main.portfolio.pendingtrades.steps.seller;
|
||||
|
||||
import io.bitsquare.app.BitsquareApp;
|
||||
import io.bitsquare.common.util.Tuple3;
|
||||
import io.bitsquare.gui.components.TextFieldWithCopyIcon;
|
||||
import io.bitsquare.gui.components.TitledGroupBg;
|
||||
@ -84,7 +85,7 @@ public class SellerStep3View extends TradeStepView {
|
||||
tradeAmountWithCode + " from the bitcoin buyer.\n\n" +
|
||||
"The reference text of the transaction is: \"" + trade.getShortId() + "\"";
|
||||
}
|
||||
if (preferences.showAgain(key)) {
|
||||
if (!BitsquareApp.DEV_MODE && preferences.showAgain(key)) {
|
||||
preferences.dontShowAgain(key, true);
|
||||
new Popup().headLine("Attention required for trade with ID " + trade.getShortId())
|
||||
.attention(message)
|
||||
|
Loading…
Reference in New Issue
Block a user