add to i18n
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -3,9 +3,7 @@ window.app.component('lnbits-wallet-api-docs', {
|
|||||||
methods: {
|
methods: {
|
||||||
copyAdminKey() {
|
copyAdminKey() {
|
||||||
LNbits.utils
|
LNbits.utils
|
||||||
.confirmDialog(
|
.confirmDialog(this.$t('admin_key_warning'))
|
||||||
`Anyone with this key can drain your entire wallet's funds. Do not share it unless you are ok with this.`
|
|
||||||
)
|
|
||||||
.onOk(() => LNbits.utils.copyText(this.g.wallet.adminkey))
|
.onOk(() => LNbits.utils.copyText(this.g.wallet.adminkey))
|
||||||
},
|
},
|
||||||
resetKeys() {
|
resetKeys() {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user