fix: fiat tracking / updating wallet without reloads (#2891)

This commit is contained in:
Arc
2025-01-22 10:27:05 +02:00
committed by GitHub
parent 8a759c8fc1
commit 273ab9781f
8 changed files with 278 additions and 88 deletions
+9 -1
View File
@@ -444,6 +444,9 @@ if (!window.g) {
extensions: [],
user: null,
wallet: {},
fiatBalance: 0,
exchangeRate: 0,
fiatTracking: false,
wallets: [],
payments: [],
allowedThemes: null,
@@ -822,7 +825,12 @@ window.windowMixin = {
await this.checkUsrInUrl()
this.themeParams()
this.walletFlip = this.$q.localStorage.getItem('lnbits.walletFlip')
this.mobileSimple = this.$q.localStorage.getItem('lnbits.mobileSimple')
if (
this.$q.screen.gt.sm ||
this.$q.localStorage.getItem('lnbits.mobileSimple') == false
) {
this.mobileSimple = false
}
},
mounted() {
if (this.g.user) {