feat: move disclaimer from wallet.html into vue component (#3536)
This commit is contained in:
@@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user