mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Merge pull request #6537 from yonson2023/fix_issue_6529
Differenciate offer removal pop-ups for BSQ swaps and regular trades.
This commit is contained in:
commit
74d0eaf462
@ -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