mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-24 15:35:34 -04:00
ignore popups in dev mode
This commit is contained in:
parent
f36d8241f3
commit
59b41c7a4f
3 changed files with 17 additions and 13 deletions
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
package io.bitsquare.gui.main.portfolio.pendingtrades.steps.buyer;
|
package io.bitsquare.gui.main.portfolio.pendingtrades.steps.buyer;
|
||||||
|
|
||||||
|
import io.bitsquare.app.BitsquareApp;
|
||||||
import io.bitsquare.common.util.Tuple3;
|
import io.bitsquare.common.util.Tuple3;
|
||||||
import io.bitsquare.gui.components.TextFieldWithCopyIcon;
|
import io.bitsquare.gui.components.TextFieldWithCopyIcon;
|
||||||
import io.bitsquare.gui.components.TitledGroupBg;
|
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 " +
|
"DO NOT use any additional notice in the reference text like " +
|
||||||
"Bitcoin, Btc or Bitsquare.";
|
"Bitcoin, Btc or Bitsquare.";
|
||||||
|
|
||||||
if (preferences.showAgain(key)) {
|
if (!BitsquareApp.DEV_MODE && preferences.showAgain(key)) {
|
||||||
preferences.dontShowAgain(key, true);
|
preferences.dontShowAgain(key, true);
|
||||||
new Popup().headLine("Attention required for trade with ID " + trade.getShortId())
|
new Popup().headLine("Attention required for trade with ID " + trade.getShortId())
|
||||||
.attention(message)
|
.attention(message)
|
||||||
|
@ -219,7 +220,7 @@ public class BuyerStep2View extends TradeStepView {
|
||||||
private void onPaymentStarted() {
|
private void onPaymentStarted() {
|
||||||
if (model.p2PService.isBootstrapped()) {
|
if (model.p2PService.isBootstrapped()) {
|
||||||
String key = "confirmPaymentStarted";
|
String key = "confirmPaymentStarted";
|
||||||
if (preferences.showAgain(key)) {
|
if (!BitsquareApp.DEV_MODE && preferences.showAgain(key)) {
|
||||||
Popup popup = new Popup();
|
Popup popup = new Popup();
|
||||||
popup.headLine("Confirm that you have started the payment")
|
popup.headLine("Confirm that you have started the payment")
|
||||||
.confirmation("Have you initiated the " + model.dataModel.getCurrencyCode() +
|
.confirmation("Have you initiated the " + model.dataModel.getCurrencyCode() +
|
||||||
|
|
|
@ -145,7 +145,7 @@ public class BuyerStep5View extends TradeStepView {
|
||||||
withdrawAddressTextField.setText("mo6y756TnpdZQCeHStraavjqrndeXzVkxi");
|
withdrawAddressTextField.setText("mo6y756TnpdZQCeHStraavjqrndeXzVkxi");
|
||||||
} else {
|
} else {
|
||||||
String key = "tradeCompleted" + trade.getId();
|
String key = "tradeCompleted" + trade.getId();
|
||||||
if (preferences.showAgain(key)) {
|
if (!BitsquareApp.DEV_MODE && preferences.showAgain(key)) {
|
||||||
preferences.dontShowAgain(key, true);
|
preferences.dontShowAgain(key, true);
|
||||||
new Notification().headLine("Trade completed")
|
new Notification().headLine("Trade completed")
|
||||||
.notification("You can withdraw your funds now to your external Bitcoin wallet.")
|
.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);
|
Coin receiverAmount = senderAmount.subtract(requiredFee);
|
||||||
BSFormatter formatter = model.formatter;
|
BSFormatter formatter = model.formatter;
|
||||||
String key = "reviewWithdrawalAtTradeComplete";
|
String key = "reviewWithdrawalAtTradeComplete";
|
||||||
if (preferences.showAgain(key)) {
|
if (!BitsquareApp.DEV_MODE && preferences.showAgain(key)) {
|
||||||
new Popup().headLine("Confirm withdrawal request")
|
new Popup().headLine("Confirm withdrawal request")
|
||||||
.confirmation("Sending: " + formatter.formatCoinWithCode(senderAmount) + "\n" +
|
.confirmation("Sending: " + formatter.formatCoinWithCode(senderAmount) + "\n" +
|
||||||
"From address: " + fromAddresses + "\n" +
|
"From address: " + fromAddresses + "\n" +
|
||||||
|
@ -231,6 +231,7 @@ public class BuyerStep5View extends TradeStepView {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleTradeCompleted() {
|
private void handleTradeCompleted() {
|
||||||
|
if (!BitsquareApp.DEV_MODE) {
|
||||||
String key = "tradeCompleteWithdrawCompletedInfo";
|
String key = "tradeCompleteWithdrawCompletedInfo";
|
||||||
new Popup().headLine("Withdrawal completed")
|
new Popup().headLine("Withdrawal completed")
|
||||||
.feedback("Your completed trades are stored under \"Portfolio/History\".\n" +
|
.feedback("Your completed trades are stored under \"Portfolio/History\".\n" +
|
||||||
|
@ -239,6 +240,7 @@ public class BuyerStep5View extends TradeStepView {
|
||||||
.onAction(() -> model.dataModel.navigation.navigateTo(MainView.class, FundsView.class, TransactionsView.class))
|
.onAction(() -> model.dataModel.navigation.navigateTo(MainView.class, FundsView.class, TransactionsView.class))
|
||||||
.dontShowAgainId(key, preferences)
|
.dontShowAgainId(key, preferences)
|
||||||
.show();
|
.show();
|
||||||
|
}
|
||||||
useSavingsWalletButton.setDisable(true);
|
useSavingsWalletButton.setDisable(true);
|
||||||
withdrawToExternalWalletButton.setDisable(true);
|
withdrawToExternalWalletButton.setDisable(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
package io.bitsquare.gui.main.portfolio.pendingtrades.steps.seller;
|
package io.bitsquare.gui.main.portfolio.pendingtrades.steps.seller;
|
||||||
|
|
||||||
|
import io.bitsquare.app.BitsquareApp;
|
||||||
import io.bitsquare.common.util.Tuple3;
|
import io.bitsquare.common.util.Tuple3;
|
||||||
import io.bitsquare.gui.components.TextFieldWithCopyIcon;
|
import io.bitsquare.gui.components.TextFieldWithCopyIcon;
|
||||||
import io.bitsquare.gui.components.TitledGroupBg;
|
import io.bitsquare.gui.components.TitledGroupBg;
|
||||||
|
@ -84,7 +85,7 @@ public class SellerStep3View extends TradeStepView {
|
||||||
tradeAmountWithCode + " from the bitcoin buyer.\n\n" +
|
tradeAmountWithCode + " from the bitcoin buyer.\n\n" +
|
||||||
"The reference text of the transaction is: \"" + trade.getShortId() + "\"";
|
"The reference text of the transaction is: \"" + trade.getShortId() + "\"";
|
||||||
}
|
}
|
||||||
if (preferences.showAgain(key)) {
|
if (!BitsquareApp.DEV_MODE && preferences.showAgain(key)) {
|
||||||
preferences.dontShowAgain(key, true);
|
preferences.dontShowAgain(key, true);
|
||||||
new Popup().headLine("Attention required for trade with ID " + trade.getShortId())
|
new Popup().headLine("Attention required for trade with ID " + trade.getShortId())
|
||||||
.attention(message)
|
.attention(message)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue