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()); confirmButton.setOnAction(e -> onReleaseBitcoin());
payoutDelayTimer = UserThread.runPeriodically(this::updateConfirmButtonDisableState, 1, TimeUnit.SECONDS); payoutDelayTimer = UserThread.runPeriodically(this::updateConfirmButtonDisableState, 1, TimeUnit.SECONDS);
} }
if (!model.dataModel.requiredPayoutDelayHasPassed()) { String tradeId = Objects.requireNonNull(model.dataModel.getTrade()).getShortId();
new Popup().warning(Res.get("portfolio.pending.step3_seller.delayedPayout", String key = "trade.delayedPayout." + tradeId;
Objects.requireNonNull(model.dataModel.getTrade()).getShortId(), if (DontShowAgainLookup.showAgain(key)) {
DisplayUtils.formatDateTime(model.dataModel.getDelayedPayoutDate()))) if (!model.dataModel.requiredPayoutDelayHasPassed()) {
.closeButtonText(Res.get("shared.iUnderstand")) new Popup().warning(Res.get("portfolio.pending.step3_seller.delayedPayout",
.show(); tradeId,
DisplayUtils.formatDateTime(model.dataModel.getDelayedPayoutDate())))
.closeButtonText(Res.get("shared.iUnderstand"))
.dontShowAgainId(key)
.show();
}
} }
} else { } else {
if (payoutDelayTimer != null) { if (payoutDelayTimer != null) {