mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-04 11:07:59 +01:00
Remove the apparent link for cases where the trade is not available
This commit is contained in:
parent
ea87411af9
commit
e84a3a22cd
1 changed files with 2 additions and 2 deletions
|
@ -1139,14 +1139,14 @@ public abstract class DisputeView extends ActivatableView<VBox, Void> {
|
|||
super.updateItem(item, empty);
|
||||
|
||||
if (item != null && !empty) {
|
||||
field = new HyperlinkWithIcon(item.getShortTradeId());
|
||||
Optional<Trade> tradeOptional = tradeManager.getTradeById(item.getTradeId());
|
||||
if (tradeOptional.isPresent()) {
|
||||
field = new HyperlinkWithIcon(item.getShortTradeId());
|
||||
field.setMouseTransparent(false);
|
||||
field.setTooltip(new Tooltip(Res.get("tooltip.openPopupForDetails")));
|
||||
field.setOnAction(event -> tradeDetailsWindow.show(tradeOptional.get()));
|
||||
} else {
|
||||
field.setMouseTransparent(true);
|
||||
setText(item.getShortTradeId());
|
||||
}
|
||||
setGraphic(field);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue