chore: refactor windowMixin, init-app.js, lnbits-theme (#3569)

This commit is contained in:
dni ⚡
2025-11-25 14:31:17 +01:00
committed by GitHub
parent 0910687328
commit 7a796c6510
8 changed files with 30 additions and 36 deletions
-15
View File
@@ -2,10 +2,7 @@ window.windowMixin = {
i18n: window.i18n,
data() {
return {
api: window._lnbitsApi,
utils: window._lnbitsUtils,
g: window.g,
currencies: window.currencies,
...WINDOW_SETTINGS
}
},
@@ -14,18 +11,6 @@ window.windowMixin = {
this.g.newWalletType = walletType
this.g.showNewWalletDialog = true
},
flipWallets(smallScreen) {
this.g.walletFlip = !this.g.walletFlip
if (this.g.walletFlip && smallScreen) {
this.g.visibleDrawer = false
}
this.$q.localStorage.set('lnbits.walletFlip', this.g.walletFlip)
},
goToWallets() {
this.$router.push({
path: '/wallets'
})
},
paymentEvents() {
this.g.walletEventListeners = this.g.walletEventListeners || []
this.g.user.wallets.forEach(wallet => {