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