Add dont show again checkbox

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2023-10-09 16:55:53 +07:00 committed by Alejandro García
parent 52e9a8cd77
commit 48b8eb6231
No known key found for this signature in database
GPG Key ID: F806F422E222AA02

View File

@ -503,12 +503,17 @@ public class SellerStep3View extends TradeStepView {
confirmButton.setOnAction(e -> onReleaseBitcoin());
payoutDelayTimer = UserThread.runPeriodically(this::updateConfirmButtonDisableState, 1, TimeUnit.SECONDS);
}
if (!model.dataModel.requiredPayoutDelayHasPassed()) {
new Popup().warning(Res.get("portfolio.pending.step3_seller.delayedPayout",
Objects.requireNonNull(model.dataModel.getTrade()).getShortId(),
DisplayUtils.formatDateTime(model.dataModel.getDelayedPayoutDate())))
.closeButtonText(Res.get("shared.iUnderstand"))
.show();
String tradeId = Objects.requireNonNull(model.dataModel.getTrade()).getShortId();
String key = "trade.delayedPayout." + tradeId;
if (DontShowAgainLookup.showAgain(key)) {
if (!model.dataModel.requiredPayoutDelayHasPassed()) {
new Popup().warning(Res.get("portfolio.pending.step3_seller.delayedPayout",
tradeId,
DisplayUtils.formatDateTime(model.dataModel.getDelayedPayoutDate())))
.closeButtonText(Res.get("shared.iUnderstand"))
.dontShowAgainId(key)
.show();
}
}
} else {
if (payoutDelayTimer != null) {