Reset wallet keys (#2929)

This commit is contained in:
Tiago Vasconcelos
2025-02-06 15:07:36 +02:00
committed by GitHub
parent 34a959f0bc
commit 432b3a0fe0
7 changed files with 94 additions and 27 deletions
+11 -6
View File
@@ -132,15 +132,20 @@ window.LNbits = {
name: name
})
},
deleteWallet(wallet) {
return this.request('delete', '/api/v1/wallet', wallet.adminkey).then(
_ => {
let url = new URL(window.location.href)
url.searchParams.delete('wal')
window.location = url
resetWalletKeys(wallet) {
return this.request('put', `/api/v1/wallet/reset/${wallet.id}`).then(
res => {
return res.data
}
)
},
deleteWallet(wallet) {
return this.request('delete', `/api/v1/wallet/${wallet.id}`).then(_ => {
let url = new URL(window.location.href)
url.searchParams.delete('wal')
window.location = url
})
},
getPayments(wallet, params) {
return this.request(
'get',