mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 11:39:29 +00:00
show either dispute payout tx id or normal payout tx id
This commit is contained in:
parent
9ec2794931
commit
140961d885
1 changed files with 9 additions and 7 deletions
|
@ -183,12 +183,12 @@ public class TradeDetailsWindow extends Overlay<TradeDetailsWindow> {
|
||||||
rows++;
|
rows++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (trade.getPayoutTxId() != null)
|
|
||||||
rows++;
|
|
||||||
boolean showDisputedTx = arbitrationManager.findOwnDispute(trade.getId()).isPresent() &&
|
boolean showDisputedTx = arbitrationManager.findOwnDispute(trade.getId()).isPresent() &&
|
||||||
arbitrationManager.findOwnDispute(trade.getId()).get().getDisputePayoutTxId() != null;
|
arbitrationManager.findOwnDispute(trade.getId()).get().getDisputePayoutTxId() != null;
|
||||||
if (showDisputedTx)
|
if (showDisputedTx)
|
||||||
rows++;
|
rows++;
|
||||||
|
else if (trade.getPayoutTxId() != null)
|
||||||
|
rows++;
|
||||||
if (trade.hasFailed())
|
if (trade.hasFailed())
|
||||||
rows += 2;
|
rows += 2;
|
||||||
if (trade.getTradePeerNodeAddress() != null)
|
if (trade.getTradePeerNodeAddress() != null)
|
||||||
|
@ -248,12 +248,14 @@ public class TradeDetailsWindow extends Overlay<TradeDetailsWindow> {
|
||||||
addLabelTxIdTextField(gridPane, ++rowIndex, Res.get("shared.takerDepositTransactionId"),
|
addLabelTxIdTextField(gridPane, ++rowIndex, Res.get("shared.takerDepositTransactionId"),
|
||||||
trade.getTaker().getDepositTxHash());
|
trade.getTaker().getDepositTxHash());
|
||||||
|
|
||||||
if (trade.getPayoutTxId() != null && !trade.getPayoutTxId().isBlank())
|
|
||||||
addLabelTxIdTextField(gridPane, ++rowIndex, Res.get("shared.payoutTxId"),
|
if (showDisputedTx) {
|
||||||
trade.getPayoutTxId());
|
|
||||||
if (showDisputedTx)
|
|
||||||
addLabelTxIdTextField(gridPane, ++rowIndex, Res.get("tradeDetailsWindow.disputedPayoutTxId"),
|
addLabelTxIdTextField(gridPane, ++rowIndex, Res.get("tradeDetailsWindow.disputedPayoutTxId"),
|
||||||
arbitrationManager.findOwnDispute(trade.getId()).get().getDisputePayoutTxId());
|
arbitrationManager.findOwnDispute(trade.getId()).get().getDisputePayoutTxId());
|
||||||
|
} else if (trade.getPayoutTxId() != null && !trade.getPayoutTxId().isBlank()) {
|
||||||
|
addLabelTxIdTextField(gridPane, ++rowIndex, Res.get("shared.payoutTxId"),
|
||||||
|
trade.getPayoutTxId());
|
||||||
|
}
|
||||||
|
|
||||||
if (trade.hasFailed()) {
|
if (trade.hasFailed()) {
|
||||||
textArea = addConfirmationLabelTextArea(gridPane, ++rowIndex, Res.get("shared.errorMessage"), "", 0).second;
|
textArea = addConfirmationLabelTextArea(gridPane, ++rowIndex, Res.get("shared.errorMessage"), "", 0).second;
|
||||||
|
|
Loading…
Reference in a new issue