Compare commits

...
Author SHA1 Message Date
Tiago Vasconcelos 02d5aec56f chore: bundle 2026-07-16 09:52:08 +01:00
Tiago Vasconcelos 993f84022e add to i18n 2026-07-16 09:35:04 +01:00
Tiago Vasconcelos 8c068e1b27 initial change 2026-07-16 09:25:52 +01:00
5 changed files with 18 additions and 6 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+4
View File
@@ -98,6 +98,10 @@ window.localisation.en = {
view_swagger_docs: 'View LNbits Swagger API docs',
api_docs: 'API docs',
api_keys_api_docs: 'Node URL, API keys and API docs',
api_keys_warning:
'These keys should be kept safe, sharing them could risk losing funds.',
admin_key_warning:
'Your admin key grants full access to your wallet, including the ability to send payments. Never share it unless you fully trust the recipient.',
lnbits_version: 'LNbits version',
runs_on: 'Runs on',
paste: 'Paste',
@@ -1,6 +1,11 @@
window.app.component('lnbits-wallet-api-docs', {
template: '#lnbits-wallet-api-docs',
methods: {
copyAdminKey() {
LNbits.utils
.confirmDialog(this.$t('admin_key_warning'))
.onOk(() => LNbits.utils.copyText(this.g.wallet.adminkey))
},
resetKeys() {
LNbits.utils
.confirmDialog('Are you sure you want to reset your API keys?')
@@ -6,9 +6,12 @@
:content-inset-level="0.5"
>
<q-card-section>
<q-banner dense rounded class="bg-warning text-black q-mb-md">
These keys should be kept safe, sharing them could risk losing funds.
</q-banner>
<q-banner
dense
rounded
class="bg-warning text-black q-mb-md"
v-text="$t('api_keys_warning')"
></q-banner>
<q-list>
<q-item dense class="q-pa-none">
<q-item-section>
@@ -69,7 +72,7 @@
<q-icon
name="content_copy"
class="cursor-pointer q-ml-sm"
@click="utils.copyText(g.wallet.adminkey)"
@click="copyAdminKey()"
></q-icon>
<q-icon name="qr_code" class="cursor-pointer q-ml-sm">
<q-popup-proxy>