mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-26 20:06:17 +02:00
cleanup
This commit is contained in:
committed by
fiatjaf
parent
b3856d5aff
commit
723c9ea3ab
@@ -601,6 +601,7 @@ new Vue({
|
|||||||
type: 'positive',
|
type: 'positive',
|
||||||
timeout: 3500
|
timeout: 3500
|
||||||
})
|
})
|
||||||
|
LNbits.href.updateWallet(res.data.name, this.user.id, this.g.wallet.id)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.newName = ''
|
this.newName = ''
|
||||||
LNbits.utils.notifyApiError(err)
|
LNbits.utils.notifyApiError(err)
|
||||||
|
@@ -41,7 +41,6 @@ async def api_wallet():
|
|||||||
@core_app.route("/api/v1/wallet/<new_name>", methods=["PUT"])
|
@core_app.route("/api/v1/wallet/<new_name>", methods=["PUT"])
|
||||||
@api_check_wallet_key("invoice")
|
@api_check_wallet_key("invoice")
|
||||||
async def api_update_wallet(new_name):
|
async def api_update_wallet(new_name):
|
||||||
print("UPDATE", g.wallet.id, new_name)
|
|
||||||
await update_wallet(g.wallet.id, new_name)
|
await update_wallet(g.wallet.id, new_name)
|
||||||
return (
|
return (
|
||||||
jsonify(
|
jsonify(
|
||||||
|
@@ -110,6 +110,9 @@ window.LNbits = {
|
|||||||
window.location.href =
|
window.location.href =
|
||||||
'/wallet?' + (userId ? 'usr=' + userId + '&' : '') + 'nme=' + walletName
|
'/wallet?' + (userId ? 'usr=' + userId + '&' : '') + 'nme=' + walletName
|
||||||
},
|
},
|
||||||
|
updateWallet: function (walletName, userId, walletId) {
|
||||||
|
window.location.href = `/wallet?usr=${userId}&wal=${walletId}&nme=${walletName}`
|
||||||
|
},
|
||||||
deleteWallet: function (walletId, userId) {
|
deleteWallet: function (walletId, userId) {
|
||||||
window.location.href = '/deletewallet?usr=' + userId + '&wal=' + walletId
|
window.location.href = '/deletewallet?usr=' + userId + '&wal=' + walletId
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user