From 38ef1b00614f0b37915f11c0f5d0ff01ce5758e9 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Wed, 31 Jul 2024 07:51:17 +0100 Subject: [PATCH] feat: add a copy wallet button (#2613) * feat: add a copy wallet button * fix: make button consistent * feat: hide API keys Closes #2462 * fix: consistency in icons * fix: missing end tag --- lnbits/core/templates/core/_api_docs.html | 54 +++++++++++++++++++++-- lnbits/core/templates/core/wallet.html | 10 ++++- lnbits/static/js/wallet.js | 4 +- 3 files changed, 62 insertions(+), 6 deletions(-) diff --git a/lnbits/core/templates/core/_api_docs.html b/lnbits/core/templates/core/_api_docs.html index 1f8d918c0..4630995b7 100644 --- a/lnbits/core/templates/core/_api_docs.html +++ b/lnbits/core/templates/core/_api_docs.html @@ -5,10 +5,56 @@ :content-inset-level="0.5" > - Node URL:
- Wallet ID: {{ wallet.id }}
- Admin key: {{ wallet.adminkey }}
- Invoice/read key: {{ wallet.inkey }} + + + + + Node URL: + + + + + + + Wallet ID: {{ wallet.id }} + + + + + + + Admin key: + + + + + + + + + + Invoice/read key: + + + + + + +

+ + +
diff --git a/lnbits/static/js/wallet.js b/lnbits/static/js/wallet.js index 38ad63aa7..0978392a4 100644 --- a/lnbits/static/js/wallet.js +++ b/lnbits/static/js/wallet.js @@ -56,7 +56,9 @@ new Vue({ update: { name: null, currency: null - } + }, + inkeyHidden: true, + adminkeyHidden: true } }, computed: {