Fake wallet fixes (#2983)
* Fake wallet fixes
LNBITS_DENOMINATION and LNBITS_DENOMINATION == 'sats' everywhere!
* added exception to "/api/v1/rate/{currency}"
* fix: create invoice dialog
* cleaning expansion items in wallet
* Revert "fix: create invoice dialog"
This reverts commit 2b550392ba080cad708519fede897891e5b9e686.
* fix fakewallet mask break
* Fix formatted amount for fakewallet
* fixed wallet balance for fakewallet
* Wow, actually cleaning code, win!
* more cleaning
* For Vlad
* more cleaning
* make
* fix for sats
* bundle issue
* fix overflow in drawer for fat wallets and stupid long names
* make
* fixed adds
* fixed ad scale
* fundle
* fix
---------
Co-authored-by: Tiago Vasconcelos <talvasconcelos@gmail.com>
This commit is contained in:
@@ -585,6 +585,13 @@ window.windowMixin = {
|
||||
window.history.replaceState({}, '', url.toString())
|
||||
}
|
||||
},
|
||||
formatBalance(amount) {
|
||||
if (LNBITS_DENOMINATION != 'sats') {
|
||||
return LNbits.utils.formatCurrency(amount / 100, LNBITS_DENOMINATION)
|
||||
} else {
|
||||
return LNbits.utils.formatSat(amount) + ' sats'
|
||||
}
|
||||
},
|
||||
changeTheme(newValue) {
|
||||
document.body.setAttribute('data-theme', newValue)
|
||||
if (this.themeSelection) {
|
||||
|
||||
Reference in New Issue
Block a user