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
@@ -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
)
}
}
})