Adds optional confetti to incoming payments in wallet (#2231)
* initial * Working with toggle * Prettier and bundle * removed console.log * bundle * fix: i18n * refactor: simplify logic --------- Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
@@ -444,6 +444,7 @@ window.windowMixin = {
|
||||
data: function () {
|
||||
return {
|
||||
toggleSubs: true,
|
||||
reactionToggle: true,
|
||||
isUserAuthorized: false,
|
||||
g: {
|
||||
offline: !navigator.onLine,
|
||||
@@ -523,6 +524,13 @@ window.windowMixin = {
|
||||
} else {
|
||||
this.$q.dark.set(true)
|
||||
}
|
||||
let reactions = this.$q.localStorage.getItem('lnbits.reactions')
|
||||
if (reactions == null) {
|
||||
this.$q.localStorage.set('lnbits.reactions', true)
|
||||
reactions = true
|
||||
}
|
||||
this.reactionToggle = reactions
|
||||
|
||||
this.g.allowedThemes = window.allowedThemes ?? ['bitcoin']
|
||||
|
||||
let locale = this.$q.localStorage.getItem('lnbits.lang')
|
||||
|
||||
Reference in New Issue
Block a user