remove message of losing maker fee on removing offer

This commit is contained in:
woodser 2023-06-09 10:27:20 -04:00
parent 37c6f36868
commit 2ca8ccb1f3
17 changed files with 17 additions and 19 deletions

View file

@ -706,9 +706,7 @@ abstract public class OfferBookView<R extends GridPane, M extends OfferBookViewM
if (model.isBootstrappedOrShowPopup()) {
String key = "RemoveOfferWarning";
if (DontShowAgainLookup.showAgain(key)) {
String message = offer.getMakerFee().compareTo(BigInteger.valueOf(0)) > 0 ?
Res.get("popup.warning.removeOffer", model.getMakerFeeAsString(offer)) :
Res.get("popup.warning.removeNoFeeOffer");
String message = Res.get("popup.warning.removeOffer");
new Popup().warning(message)
.actionButtonText(Res.get("shared.removeOffer"))
.onAction(() -> doRemoveOffer(offer))

View file

@ -374,7 +374,7 @@ public class OpenOffersView extends ActivatableViewAndModel<VBox, OpenOffersView
if (model.isBootstrappedOrShowPopup()) {
String key = "RemoveOfferWarning";
if (DontShowAgainLookup.showAgain(key)) {
new Popup().warning(Res.get("popup.warning.removeOffer", model.getMakerFeeAsString(openOffer)))
new Popup().warning(Res.get("popup.warning.removeOffer"))
.actionButtonText(Res.get("shared.removeOffer"))
.onAction(() -> doRemoveOpenOffer(openOffer))
.closeButtonText(Res.get("shared.dontRemoveOffer"))