fix: wallet was not flipping (#3508)

This commit is contained in:
dni ⚡
2025-11-12 09:54:54 +01:00
committed by GitHub
parent 9ffc63b5dc
commit 783efb19db
5 changed files with 10 additions and 11 deletions
+3 -5
View File
@@ -5,7 +5,6 @@ window.windowMixin = {
g: window.g,
toggleSubs: true,
mobileSimple: true,
walletFlip: true,
addWalletDialog: {show: false, walletType: 'lightning'},
walletTypes: [{label: 'Lightning Wallet', value: 'lightning'}],
isUserAuthorized: false,
@@ -36,11 +35,11 @@ window.windowMixin = {
methods: {
flipWallets(smallScreen) {
this.walletFlip = !this.walletFlip
if (this.walletFlip && smallScreen) {
this.g.walletFlip = !this.g.walletFlip
if (this.g.walletFlip && smallScreen) {
this.g.visibleDrawer = false
}
this.$q.localStorage.set('lnbits.walletFlip', this.walletFlip)
this.$q.localStorage.set('lnbits.walletFlip', this.g.walletFlip)
},
goToWallets() {
this.$router.push({
@@ -332,7 +331,6 @@ window.windowMixin = {
}
await this.checkUsrInUrl()
this.themeParams()
this.walletFlip = this.$q.localStorage.getItem('lnbits.walletFlip')
if (
this.$q.screen.gt.sm ||
this.$q.localStorage.getItem('lnbits.mobileSimple') == false