mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Differenciate offer removal pop-ups for BSQ swaps and regular trades.
This commit is contained in:
parent
74e1078318
commit
5d55248b7e
@ -723,11 +723,11 @@ abstract public class OfferBookView<R extends GridPane, M extends OfferBookViewM
|
||||
|
||||
private void onRemoveOpenOffer(Offer offer) {
|
||||
if (model.isBootstrappedOrShowPopup()) {
|
||||
String key = "RemoveOfferWarning";
|
||||
String key = (offer.isBsqSwapOffer() ? "RemoveBsqSwapWarning" : "RemoveOfferWarning");
|
||||
if (DontShowAgainLookup.showAgain(key)) {
|
||||
String message = offer.getMakerFee().isPositive() ?
|
||||
Res.get("popup.warning.removeOffer", model.getMakerFeeAsString(offer)) :
|
||||
Res.get("popup.warning.removeNoFeeOffer");
|
||||
String message = offer.isBsqSwapOffer() ?
|
||||
Res.get("popup.warning.removeNoFeeOffer") :
|
||||
Res.get("popup.warning.removeOffer", model.getMakerFeeAsString(offer));
|
||||
new Popup().warning(message)
|
||||
.actionButtonText(Res.get("shared.removeOffer"))
|
||||
.onAction(() -> doRemoveOffer(offer))
|
||||
|
@ -359,11 +359,11 @@ public class OpenOffersView extends ActivatableViewAndModel<VBox, OpenOffersView
|
||||
private void onRemoveOpenOffer(OpenOfferListItem item) {
|
||||
OpenOffer openOffer = item.getOpenOffer();
|
||||
if (model.isBootstrappedOrShowPopup()) {
|
||||
String key = "RemoveOfferWarning";
|
||||
String key = (openOffer.getOffer().isBsqSwapOffer() ? "RemoveBsqSwapWarning" : "RemoveOfferWarning");
|
||||
if (DontShowAgainLookup.showAgain(key)) {
|
||||
String message = item.hasMakerFee() ?
|
||||
Res.get("popup.warning.removeOffer", item.getMakerFeeAsString()) :
|
||||
Res.get("popup.warning.removeNoFeeOffer");
|
||||
String message = openOffer.getOffer().isBsqSwapOffer() ?
|
||||
Res.get("popup.warning.removeNoFeeOffer") :
|
||||
Res.get("popup.warning.removeOffer", item.getMakerFeeAsString());
|
||||
new Popup().warning(message)
|
||||
.actionButtonText(Res.get("shared.removeOffer"))
|
||||
.onAction(() -> doRemoveOpenOffer(openOffer))
|
||||
|
Loading…
Reference in New Issue
Block a user