chore: getting rid of jinja variable in wallet.html (#3547)

This commit is contained in:
dni ⚡
2025-11-21 09:01:53 +01:00
committed by GitHub
parent 5346ac47b1
commit 3ccefb70fa
7 changed files with 19 additions and 38 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -48,7 +48,9 @@ window.g = Vue.reactive({
'lnbits.backgroundImage',
WINDOW_SETTINGS.LNBITS_DEFAULT_BGIMAGE || ''
),
ads: WINDOW_SETTINGS.AD_SPACE.split(',').map(ad => ad.split(';'))
ads: WINDOW_SETTINGS.AD_SPACE.split(',').map(ad => ad.split(';')),
denomination: WINDOW_SETTINGS.LNBITS_DENOMINATION,
isSatsDenomination: WINDOW_SETTINGS.LNBITS_DENOMINATION == 'sats'
})
window.dateFormat = 'YYYY-MM-DD HH:mm'
+1 -1
View File
@@ -579,7 +579,7 @@ window.PageAccount = {
// filter out themes that are not allowed
this.themeOptions = this.themeOptions.filter(theme =>
this.allowedThemes.includes(theme.name)
this.LNBITS_THEME_OPTIONS.includes(theme.name)
)
}
}
-10
View File
@@ -122,16 +122,6 @@ window.WalletPageLogic = {
}
},
computed: {
formattedBalance() {
if (LNBITS_DENOMINATION != 'sats') {
return LNbits.utils.formatCurrency(
this.g.wallet.sat / 100,
LNBITS_DENOMINATION
)
} else {
return LNbits.utils.formatSat(this.g.wallet.sat)
}
},
canPay() {
if (!this.parse.invoice) return false
if (this.parse.invoice.expired) {
-5
View File
@@ -5,14 +5,9 @@ window.windowMixin = {
api: window._lnbitsApi,
utils: window._lnbitsUtils,
g: window.g,
toggleSubs: true,
isSatsDenomination: WINDOW_SETTINGS['LNBITS_DENOMINATION'] == 'sats',
allowedThemes: WINDOW_SETTINGS['LNBITS_THEME_OPTIONS'],
walletEventListeners: [],
...WINDOW_SETTINGS
}
},
methods: {
openNewWalletDialog(walletType = 'lightning') {
this.g.newWalletType = walletType