Fix field visibility for fixed amount offer

This commit is contained in:
Devin Bileck 2018-10-16 14:52:41 -07:00
parent d435afdd03
commit 5e27cbb2f6
No known key found for this signature in database
GPG key ID: 38750B26EA8B8C93

View file

@ -254,7 +254,10 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
maybeShowClearXchangeWarning();
if (!model.isRange()) {
showNextStepAfterAmountIsSet();
nextButton.setVisible(false);
cancelButton1.setVisible(false);
if (model.isOfferAvailable.get())
showNextStepAfterAmountIsSet();
}
if (CurrencyUtil.isFiatCurrency(model.getOffer().getCurrencyCode())) {
@ -587,8 +590,11 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
});
isOfferAvailableSubscription = EasyBind.subscribe(model.isOfferAvailable, isOfferAvailable -> {
if (isOfferAvailable)
if (isOfferAvailable) {
offerAvailabilityBusyAnimation.stop();
if (!model.isRange() && !model.showPayFundsScreenDisplayed.get())
showNextStepAfterAmountIsSet();
}
offerAvailabilityLabel.setVisible(!isOfferAvailable);
offerAvailabilityLabel.setManaged(!isOfferAvailable);