From 096190cfd2500750c6f532b100ea01f133f9347a Mon Sep 17 00:00:00 2001
From: bitkarrot <73979971+bitkarrot@users.noreply.github.com>
Date: Tue, 14 Mar 2023 16:27:06 -0700
Subject: [PATCH 1/2] add label for lnaddress to qrcode html
---
templates/lnurlp/index.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/templates/lnurlp/index.html b/templates/lnurlp/index.html
index 405ea3a..b5f5909 100644
--- a/templates/lnurlp/index.html
+++ b/templates/lnurlp/index.html
@@ -319,6 +319,7 @@
Dispatches webhook to: {{ qrCodeDialog.data.webhook
}}
On success: {{ qrCodeDialog.data.success }}
+ Lightning Address: {{ qrCodeDialog.data.username}}
{% endraw %}
From b672a7710cfa75cf35d2624179e067feea99b826 Mon Sep 17 00:00:00 2001
From: bitkarrot <73979971+bitkarrot@users.noreply.github.com>
Date: Tue, 14 Mar 2023 16:35:31 -0700
Subject: [PATCH 2/2] add ln address to qr code
---
static/js/index.js | 3 ++-
templates/lnurlp/index.html | 5 ++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/static/js/index.js b/static/js/index.js
index 0075f28..c44c4ca 100644
--- a/static/js/index.js
+++ b/static/js/index.js
@@ -93,7 +93,8 @@ new Vue({
: 'do nothing',
lnurl: link.lnurl,
pay_url: link.pay_url,
- print_url: link.print_url
+ print_url: link.print_url,
+ username: link.username
}
this.qrCodeDialog.show = true
},
diff --git a/templates/lnurlp/index.html b/templates/lnurlp/index.html
index b5f5909..adbcdb7 100644
--- a/templates/lnurlp/index.html
+++ b/templates/lnurlp/index.html
@@ -319,7 +319,10 @@
Dispatches webhook to: {{ qrCodeDialog.data.webhook
}}
On success: {{ qrCodeDialog.data.success }}
-
Lightning Address: {{ qrCodeDialog.data.username}}
+
+ Lightning Address: {{ qrCodeDialog.data.username}}@{{domain}}
+
+
{% endraw %}