mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-03 02:56:56 -04:00
trim extra info
This commit is contained in:
parent
45a13dfd2a
commit
52c1c70a31
2 changed files with 3 additions and 3 deletions
|
@ -504,7 +504,7 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
|||
|
||||
extraInfoStringListener = (ov, oldValue, newValue) -> {
|
||||
if (newValue != null) {
|
||||
extraInfo.set(newValue);
|
||||
extraInfo.set(newValue.trim());
|
||||
UserThread.execute(() -> onExtraInfoTextAreaChanged());
|
||||
}
|
||||
};
|
||||
|
|
|
@ -362,7 +362,7 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
|
|||
|
||||
// attach extra info text area
|
||||
extraInfoTextArea = addCompactTopLabelTextArea(gridPane, ++lastGridRowNoFundingRequired, Res.get("payment.shared.extraInfo.noDeposit"), "").second;
|
||||
extraInfoTextArea.setText(offer.getCombinedExtraInfo());
|
||||
extraInfoTextArea.setText(offer.getCombinedExtraInfo().trim());
|
||||
extraInfoTextArea.getStyleClass().add("text-area");
|
||||
extraInfoTextArea.setWrapText(true);
|
||||
extraInfoTextArea.setMaxHeight(300);
|
||||
|
@ -1146,7 +1146,7 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
|
|||
UserThread.runAfter(() -> {
|
||||
new GenericMessageWindow()
|
||||
.preamble(Res.get("payment.tradingRestrictions"))
|
||||
.instruction(offer.getCombinedExtraInfo())
|
||||
.instruction(offer.getCombinedExtraInfo().trim())
|
||||
.actionButtonText(Res.get("shared.iConfirm"))
|
||||
.closeButtonText(Res.get("shared.close"))
|
||||
.width(Layout.INITIAL_WINDOW_WIDTH)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue