cannot open dispute until both deposits confirmed and available

This commit is contained in:
woodser 2022-12-19 11:18:50 +00:00
parent e85682e635
commit f13e1ec610
2 changed files with 14 additions and 10 deletions

View file

@ -273,8 +273,12 @@ public abstract class TradeStepView extends AnchorPane {
}
private void openSupportTicket() {
applyOnDisputeOpened();
model.dataModel.onOpenDispute();
if (trade.getPhase().ordinal() < Trade.Phase.DEPOSITS_UNLOCKED.ordinal()) {
new Popup().warning(Res.get("portfolio.pending.error.depositTxNotConfirmed")).show();
} else {
applyOnDisputeOpened();
model.dataModel.onOpenDispute();
}
}
private void openChat() {