subscribe to dispute state property to update dispute view
This commit is contained in:
parent
66a152c888
commit
dee5a11e63
@ -1352,7 +1352,7 @@ public abstract class DisputeView extends ActivatableView<VBox, Void> {
|
||||
// subscribe to trade's dispute state
|
||||
Trade trade = tradeManager.getTrade(item.getTradeId());
|
||||
if (trade == null) log.warn("Dispute's trade is null for trade {}", item.getTradeId());
|
||||
else subscription = EasyBind.subscribe(item.isClosedProperty(), closedProp -> setText(getDisputeStateText(item)));
|
||||
else subscription = EasyBind.subscribe(trade.disputeStateProperty(), disputeState -> setText(getDisputeStateText(item)));
|
||||
} else {
|
||||
if (closedProperty != null) {
|
||||
closedProperty.removeListener(listener);
|
||||
|
Loading…
Reference in New Issue
Block a user