refactor into <lnbits-footer /> component (#3487)

This commit is contained in:
dni ⚡
2025-11-10 11:53:20 +01:00
committed by GitHub
parent 37ba437ad1
commit 6474aeb982
7 changed files with 65 additions and 47 deletions
File diff suppressed because one or more lines are too long
@@ -0,0 +1,18 @@
window.app.component('lnbits-footer', {
template: '#lnbits-footer',
mixins: [window.windowMixin],
computed: {
version() {
return this.LNBITS_VERSION || 'unknown version'
},
title() {
return `${this.SITE_TITLE}, ${this.SITE_TAGLINE}`
},
showFooter() {
return (
this.SITE_TITLE == 'LNbits' &&
this.LNBITS_SHOW_HOME_PAGE_ELEMENTS == true
)
}
}
})
+1
View File
@@ -69,6 +69,7 @@
"js/components/lnbits-new-user-wallet.js",
"js/components/lnbits-qrcode.js",
"js/components/lnbits-qrcode-lnurl.js",
"js/components/lnbits-footer.js",
"js/components/extension-settings.js",
"js/components/data-fields.js",
"js/components/payment-list.js",