feat: move disclaimer from wallet.html into vue component (#3536)

This commit is contained in:
dni ⚡
2025-11-21 08:39:17 +01:00
committed by GitHub
parent 9f4ed53888
commit 5346ac47b1
12 changed files with 66 additions and 62 deletions
@@ -0,0 +1,9 @@
window.app.component('lnbits-disclaimer', {
template: '#lnbits-disclaimer',
mixins: [window.windowMixin],
computed: {
showDisclaimer() {
return !g.disclaimerShown && g.isUserAuthorized
}
}
})
@@ -1,6 +1,12 @@
window.app.component('lnbits-theme', {
mixins: [window.windowMixin],
watch: {
'g.disclaimerShown'(val) {
this.$q.localStorage.setItem('lnbits.disclaimerShown', val)
},
'g.isFiatPriority'(val) {
this.$q.localStorage.setItem('lnbits.isFiatPriority', val)
},
'g.reactionChoice'(val) {
this.$q.localStorage.set('lnbits.reactions', val)
},