Fix: Add a QR and Copy button (#3640)

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
Tiago Vasconcelos 2025-12-08 14:28:18 +00:00 committed by GitHub
parent cd6cfff9cf
commit b7fdf99a8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -39,6 +39,7 @@ window.app.component('lnbits-wallet-api-docs', {
},
data() {
return {
origin: window.location.origin,
inkeyHidden: true,
adminkeyHidden: true,
walletIdHidden: true

View file

@ -13,6 +13,25 @@
<strong>Node URL: </strong><em v-text="origin"></em>
</q-item-label>
</q-item-section>
<q-item-section side>
<div>
<q-icon
name="content_copy"
class="cursor-pointer q-ml-sm"
@click="utils.copyText(origin)"
></q-icon>
<q-icon name="qr_code" class="cursor-pointer q-ml-sm">
<q-popup-proxy>
<div class="q-pa-md">
<lnbits-qrcode
:value="origin"
:show-buttons="false"
></lnbits-qrcode>
</div>
</q-popup-proxy>
</q-icon>
</div>
</q-item-section>
</q-item>
<q-item dense class="q-pa-none">
<q-item-section>