Skip to content

Commit

Permalink
Change action button's text in BisqEasy closeTrade popup
Browse files Browse the repository at this point in the history
  • Loading branch information
axpoems committed Jan 2, 2024
1 parent 69d1874 commit c72703d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ public void onDeactivate() {

private void onLeaveChannel() {
new Popup().feedback(Res.get("bisqEasy.openTrades.closeTrade.warning.completed"))
.actionButtonText(Res.get("confirmation.yes"))
.actionButtonText(Res.get("bisqEasy.openTrades.confirmCloseTrade"))
.onAction(() -> {
channelService.leaveChannel(model.getChannel());
bisqEasyTradeService.removeTrade(model.getBisqEasyTrade());
selectionService.getSelectedChannel().set(null);
})
.closeButtonText(Res.get("confirmation.no"))
.closeButtonText(Res.get("action.cancel"))
.show();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ public void onDeactivate() {

private void onLeaveChannel() {
new Popup().feedback(Res.get("bisqEasy.openTrades.closeTrade.warning.completed"))
.actionButtonText(Res.get("confirmation.yes"))
.actionButtonText(Res.get("bisqEasy.openTrades.confirmCloseTrade"))
.onAction(() -> {
channelService.leaveChannel(model.getChannel());
bisqEasyTradeService.removeTrade(model.getBisqEasyTrade());
selectionService.getSelectedChannel().set(null);
})
.closeButtonText(Res.get("confirmation.no"))
.closeButtonText(Res.get("action.cancel"))
.show();
}

Expand Down
1 change: 1 addition & 0 deletions i18n/src/main/resources/bisq_easy.properties
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ bisqEasy.openTrades.closeTrade.warning.completed=Your trade has been completed.\
You can now close the trade or back up the trade data on your computer if needed.\n\n\
Once the trade is closed all data related to the trade are gone, and you cannot communicate with the trade peer in the trade chat anymore.
bisqEasy.openTrades.closeTrade=Close trade
bisqEasy.openTrades.confirmCloseTrade=Confirm close trade
bisqEasy.openTrades.exportTrade=Export trade data
bisqEasy.openTrades.reportToMediator=Report to mediator
bisqEasy.openTrades.rejected.self=You have rejected the trade
Expand Down

0 comments on commit c72703d

Please sign in to comment.