Merge pull request #2590 from devinbileck/no-trading-account-for-selected-currency

Show close button when creating offer without required account
This commit is contained in:
Manfred Karrer 2019-03-26 21:52:19 -05:00 committed by GitHub
commit 55c54356a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -408,11 +408,12 @@ public class OfferBookView extends ActivatableViewAndModel<GridPane, OfferBookVi
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();