Reset trigger price after switch to fixed price (edit offer)

This commit is contained in:
xyzmaker123 2022-07-28 09:51:25 +02:00
parent ec00c9962f
commit c1ed35f8f0
No known key found for this signature in database
GPG key ID: 47689699B7B0AAFC

View file

@ -1435,6 +1435,9 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel<?>> exten
firstRowHBox.getChildren().add(2, fixedPriceBox);
if (!secondRowHBox.getChildren().contains(percentagePriceBox))
secondRowHBox.getChildren().add(2, percentagePriceBox);
model.triggerPrice.set("");
model.onTriggerPriceTextFieldChanged();
} else {
firstRowHBox.getChildren().remove(fixedPriceBox);
secondRowHBox.getChildren().remove(percentagePriceBox);