diff --git a/lnbits/core/static/js/wallet.js b/lnbits/core/static/js/wallet.js index 661d2e24..0b08bcca 100644 --- a/lnbits/core/static/js/wallet.js +++ b/lnbits/core/static/js/wallet.js @@ -129,7 +129,8 @@ new Vue({ lnurlpay: null, data: { request: '', - amount: 0 + amount: 0, + comment: '' }, paymentChecker: null, camera: { @@ -235,6 +236,7 @@ new Vue({ this.parse.invoice = null this.parse.lnurlpay = null this.parse.data.request = '' + this.parse.data.comment = '' this.parse.data.paymentChecker = null this.parse.camera.show = false }, @@ -449,7 +451,8 @@ new Vue({ this.parse.lnurlpay.callback, this.parse.lnurlpay.description_hash, this.parse.data.amount * 1000, - this.parse.lnurlpay.description.slice(0, 120) + this.parse.lnurlpay.description.slice(0, 120), + this.parse.data.comment ) .then(response => { this.parse.show = false diff --git a/lnbits/core/templates/core/wallet.html b/lnbits/core/templates/core/wallet.html index a9169c3b..5c95f377 100644 --- a/lnbits/core/templates/core/wallet.html +++ b/lnbits/core/templates/core/wallet.html @@ -349,27 +349,53 @@

{{ parse.lnurlpay.domain }} is requesting {{ parse.lnurlpay.maxSendable | msatoshiFormat }} sat + +
+ and a {{parse.lnurlpay.commentAllowed}}-char comment +

{{ parse.lnurlpay.domain }} is requesting
between {{ parse.lnurlpay.minSendable | msatoshiFormat }} and {{ parse.lnurlpay.maxSendable | msatoshiFormat }} sat + +
+ and a {{parse.lnurlpay.commentAllowed}}-char comment +

-

{{ parse.lnurlpay.description }}

-

- -

- +
+

+ {{ parse.lnurlpay.description }} +

+

+ +

+
+
+
+ +
+
+ +
+
Send satoshis