initial change
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
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(
|
||||||
|
`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))
|
||||||
|
},
|
||||||
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?')
|
||||||
|
|||||||
@@ -69,7 +69,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