chore: cleanup LNBITS_DENOMINATION global var (#3580)

This commit is contained in:
dni ⚡
2025-11-26 15:15:20 +01:00
committed by GitHub
parent da31e3caaa
commit c6c67c52db
11 changed files with 18 additions and 32 deletions
@@ -2,9 +2,6 @@ window.app.component('lnbits-header', {
template: '#lnbits-header',
mixins: [window.windowMixin],
computed: {
denomination() {
return this.LNBITS_DENOMINATION || 'sat'
},
hasServiceFeeMax() {
return (
this.g.user &&
@@ -95,7 +95,7 @@ window.app.component('lnbits-home-logos', {
computed: {
showLogos() {
return (
this.LNBITS_DENOMINATION == 'sats' &&
this.g.isSatsDenomination &&
this.SITE_TITLE == 'LNbits' &&
this.LNBITS_SHOW_HOME_PAGE_ELEMENTS == true
)
@@ -4,7 +4,6 @@ window.app.component('lnbits-payment-list', {
mixins: [window.windowMixin],
data() {
return {
denomination: LNBITS_DENOMINATION,
payments: [],
paymentsTable: {
columns: [
@@ -18,7 +17,7 @@ window.app.component('lnbits-payment-list', {
{
name: 'amount',
align: 'right',
label: this.$t('amount') + ' (' + LNBITS_DENOMINATION + ')',
label: this.$t('amount'),
field: 'sat',
sortable: true
}
@@ -67,14 +66,14 @@ window.app.component('lnbits-payment-list', {
{
name: 'amount',
align: 'right',
label: this.$t('amount') + ' (' + LNBITS_DENOMINATION + ')',
label: this.$t('amount'),
field: 'sat',
sortable: true
},
{
name: 'fee',
align: 'right',
label: this.$t('fee') + ' (m' + LNBITS_DENOMINATION + ')',
label: this.$t('fee'),
field: 'fee'
},
{