Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02d5aec56f | ||
|
|
993f84022e | ||
|
|
8c068e1b27 |
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -98,6 +98,10 @@ window.localisation.en = {
|
|||||||
view_swagger_docs: 'View LNbits Swagger API docs',
|
view_swagger_docs: 'View LNbits Swagger API docs',
|
||||||
api_docs: 'API docs',
|
api_docs: 'API docs',
|
||||||
api_keys_api_docs: 'Node URL, API keys and 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',
|
lnbits_version: 'LNbits version',
|
||||||
runs_on: 'Runs on',
|
runs_on: 'Runs on',
|
||||||
paste: 'Paste',
|
paste: 'Paste',
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
window.app.component('lnbits-wallet-api-docs', {
|
window.app.component('lnbits-wallet-api-docs', {
|
||||||
template: '#lnbits-wallet-api-docs',
|
template: '#lnbits-wallet-api-docs',
|
||||||
methods: {
|
methods: {
|
||||||
|
copyAdminKey() {
|
||||||
|
LNbits.utils
|
||||||
|
.confirmDialog(this.$t('admin_key_warning'))
|
||||||
|
.onOk(() => LNbits.utils.copyText(this.g.wallet.adminkey))
|
||||||
|
},
|
||||||
resetKeys() {
|
resetKeys() {
|
||||||
LNbits.utils
|
LNbits.utils
|
||||||
.confirmDialog('Are you sure you want to reset your API keys?')
|
.confirmDialog('Are you sure you want to reset your API keys?')
|
||||||
|
|||||||
@@ -6,9 +6,12 @@
|
|||||||
:content-inset-level="0.5"
|
:content-inset-level="0.5"
|
||||||
>
|
>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<q-banner dense rounded class="bg-warning text-black q-mb-md">
|
<q-banner
|
||||||
These keys should be kept safe, sharing them could risk losing funds.
|
dense
|
||||||
</q-banner>
|
rounded
|
||||||
|
class="bg-warning text-black q-mb-md"
|
||||||
|
v-text="$t('api_keys_warning')"
|
||||||
|
></q-banner>
|
||||||
<q-list>
|
<q-list>
|
||||||
<q-item dense class="q-pa-none">
|
<q-item dense class="q-pa-none">
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
@@ -69,7 +72,7 @@
|
|||||||
<q-icon
|
<q-icon
|
||||||
name="content_copy"
|
name="content_copy"
|
||||||
class="cursor-pointer q-ml-sm"
|
class="cursor-pointer q-ml-sm"
|
||||||
@click="utils.copyText(g.wallet.adminkey)"
|
@click="copyAdminKey()"
|
||||||
></q-icon>
|
></q-icon>
|
||||||
<q-icon name="qr_code" class="cursor-pointer q-ml-sm">
|
<q-icon name="qr_code" class="cursor-pointer q-ml-sm">
|
||||||
<q-popup-proxy>
|
<q-popup-proxy>
|
||||||
|
|||||||
Reference in New Issue
Block a user