mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-10-12 02:20:53 -04:00
support moving trades to failed trades with right click
This commit is contained in:
parent
5f7b55d061
commit
4dbd6ce651
1 changed files with 9 additions and 1 deletions
|
@ -239,7 +239,15 @@ public class PendingTradesView extends ActivatableViewAndModel<VBox, PendingTrad
|
||||||
log.warn("Unable to get offerPayload - {}", e.toString());
|
log.warn("Unable to get offerPayload - {}", e.toString());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
rowMenu.getItems().add(duplicateItem);
|
MenuItem moveToFailedItem = new MenuItem(Res.get("portfolio.pending.failedTrade.moveTradeToFailedIcon.tooltip"));
|
||||||
|
moveToFailedItem.setOnAction((event) -> {
|
||||||
|
if (isMaybeInvalidTrade(row.getItem().getTrade())) {
|
||||||
|
onMoveInvalidTradeToFailedTrades(row.getItem().getTrade());
|
||||||
|
} else {
|
||||||
|
model.dataModel.tradeManager.onMoveInvalidTradeToFailedTrades(row.getItem().getTrade());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
rowMenu.getItems().addAll(duplicateItem, moveToFailedItem);
|
||||||
row.contextMenuProperty().bind(
|
row.contextMenuProperty().bind(
|
||||||
Bindings.when(Bindings.isNotNull(row.itemProperty()))
|
Bindings.when(Bindings.isNotNull(row.itemProperty()))
|
||||||
.then(rowMenu)
|
.then(rowMenu)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue