This commit is contained in:
Tiago vasconcelos
2021-08-06 12:37:30 -03:00
committed by fiatjaf
parent b3856d5aff
commit 723c9ea3ab
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -601,6 +601,7 @@ new Vue({
type: 'positive',
timeout: 3500
})
LNbits.href.updateWallet(res.data.name, this.user.id, this.g.wallet.id)
}).catch(err => {
this.newName = ''
LNbits.utils.notifyApiError(err)
-1
View File
@@ -41,7 +41,6 @@ async def api_wallet():
@core_app.route("/api/v1/wallet/<new_name>", methods=["PUT"])
@api_check_wallet_key("invoice")
async def api_update_wallet(new_name):
print("UPDATE", g.wallet.id, new_name)
await update_wallet(g.wallet.id, new_name)
return (
jsonify(