Add note to SetXmrTxKeyWindow

To convey what it's about, and that it's optional.
This commit is contained in:
m52go 2020-09-07 11:35:34 -04:00
parent e7d24efb4a
commit 2265d8f9e1
No known key found for this signature in database
GPG key ID: 4B5CAF4A4862E688
2 changed files with 5 additions and 2 deletions

View file

@ -2551,8 +2551,9 @@ showWalletDataWindow.walletData=Wallet data
showWalletDataWindow.includePrivKeys=Include private keys
setXMRTxKeyWindow.headline=Prove sending of XMR
setXMRTxKeyWindow.txHash=Transaction ID
setXMRTxKeyWindow.txKey=Transaction key
setXMRTxKeyWindow.note=Adding tx info below enables auto-confirm for quicker trades. See more: https://bisq.wiki/Trading_Monero
setXMRTxKeyWindow.txHash=Transaction ID (optional)
setXMRTxKeyWindow.txKey=Transaction key (optional)
# We do not translate the tac because of the legal nature. We would need translations checked by lawyers
# in each language which is too expensive atm.

View file

@ -36,6 +36,7 @@ import lombok.Getter;
import javax.annotation.Nullable;
import static bisq.common.app.DevEnv.isDevMode;
import static bisq.desktop.util.FormBuilder.addMultilineLabel;
import static bisq.desktop.util.FormBuilder.addInputTextField;
import static javafx.beans.binding.Bindings.createBooleanBinding;
@ -114,6 +115,7 @@ public class SetXmrTxKeyWindow extends Overlay<SetXmrTxKeyWindow> {
}
private void addContent() {
addMultilineLabel(gridPane, ++rowIndex, Res.get("setXMRTxKeyWindow.note"), 0);
txHashInputTextField = addInputTextField(gridPane, ++rowIndex, Res.get("setXMRTxKeyWindow.txHash"), 10);
txKeyInputTextField = addInputTextField(gridPane, ++rowIndex, Res.get("setXMRTxKeyWindow.txKey"));
}