Skip to content

Commit

Permalink
Merge pull request #2590 from devinbileck/no-trading-account-for-sele…
Browse files Browse the repository at this point in the history
…cted-currency

Show close button when creating offer without required account
  • Loading branch information
ManfredKarrer authored Mar 27, 2019
2 parents 15bf8ff + b86da39 commit 55c5435
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,12 @@ private void onCreateOffer() {
createOfferButton.setDisable(true);
offerActionHandler.onCreateOffer(model.getSelectedTradeCurrency());
})
.closeButtonText(Res.get("offerbook.setupNewAccount"))
.onClose(() -> {
.secondaryActionButtonText(Res.get("offerbook.setupNewAccount"))
.onSecondaryAction(() -> {
navigation.setReturnPath(navigation.getCurrentPath());
navigation.navigateTo(MainView.class, AccountView.class, FiatAccountsView.class);
})
.width(725)
.show();
} else if (!model.hasAcceptedArbitrators()) {
new Popup<>().warning(Res.get("popup.warning.noArbitratorsAvailable")).show();
Expand Down

0 comments on commit 55c5435

Please sign in to comment.