chore: getting rid of jinja variable in wallet.html (#3547)
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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'
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user