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:
Arc
2024-02-08 13:34:03 +00:00
committed by GitHub
co-authored by Vlad Stan
parent 6c46867698
commit c1c4eda69d
10 changed files with 559 additions and 10 deletions
+8
View File
@@ -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')