mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-25 16:05:28 -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) -> {
|
extraInfoStringListener = (ov, oldValue, newValue) -> {
|
||||||
if (newValue != null) {
|
if (newValue != null) {
|
||||||
extraInfo.set(newValue);
|
extraInfo.set(newValue.trim());
|
||||||
UserThread.execute(() -> onExtraInfoTextAreaChanged());
|
UserThread.execute(() -> onExtraInfoTextAreaChanged());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -362,7 +362,7 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
|
||||||
|
|
||||||
// attach extra info text area
|
// attach extra info text area
|
||||||
extraInfoTextArea = addCompactTopLabelTextArea(gridPane, ++lastGridRowNoFundingRequired, Res.get("payment.shared.extraInfo.noDeposit"), "").second;
|
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.getStyleClass().add("text-area");
|
||||||
extraInfoTextArea.setWrapText(true);
|
extraInfoTextArea.setWrapText(true);
|
||||||
extraInfoTextArea.setMaxHeight(300);
|
extraInfoTextArea.setMaxHeight(300);
|
||||||
|
@ -1146,7 +1146,7 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
|
||||||
UserThread.runAfter(() -> {
|
UserThread.runAfter(() -> {
|
||||||
new GenericMessageWindow()
|
new GenericMessageWindow()
|
||||||
.preamble(Res.get("payment.tradingRestrictions"))
|
.preamble(Res.get("payment.tradingRestrictions"))
|
||||||
.instruction(offer.getCombinedExtraInfo())
|
.instruction(offer.getCombinedExtraInfo().trim())
|
||||||
.actionButtonText(Res.get("shared.iConfirm"))
|
.actionButtonText(Res.get("shared.iConfirm"))
|
||||||
.closeButtonText(Res.get("shared.close"))
|
.closeButtonText(Res.get("shared.close"))
|
||||||
.width(Layout.INITIAL_WINDOW_WIDTH)
|
.width(Layout.INITIAL_WINDOW_WIDTH)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue