add create wallet card

This commit is contained in:
dni ⚡ 2025-01-10 13:05:12 +01:00
parent 89e58c0cf0
commit fb4398a759
No known key found for this signature in database
GPG key ID: D1F416F29AD26E87

View file

@ -467,12 +467,16 @@ window.windowMixin = {
wallet: null, wallet: null,
payments: [], payments: [],
allowedThemes: null, allowedThemes: null,
langs: [] langs: [],
walletName: ''
} }
} }
}, },
methods: { methods: {
createWallet() {
LNbits.api.createWallet(this.g.user.wallets[0], this.walletName)
},
flipWallets(smallScreen) { flipWallets(smallScreen) {
this.walletFlip = !this.walletFlip this.walletFlip = !this.walletFlip
if (this.walletFlip && smallScreen) { if (this.walletFlip && smallScreen) {