Improves payment reactions (#2251)

* updated to select

* updating

* working

* bundle

* updated to select

* updating

* working

* bundle

* Make room for everything apart from sending

* Update lnbits/static/js/base.js

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>

* prettier

* bundled

* fundle

* changed to window[]

* vlads suggestion

* added stars

* vlads suggestion

* fundle

---------

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
Arc
2024-02-12 10:48:07 +00:00
committed by GitHub
co-authored by Vlad Stan
parent 62dec118af
commit 98338ffb00
9 changed files with 423 additions and 790 deletions
+3 -8
View File
@@ -168,7 +168,6 @@ window.LNbits = {
let listener = ev => {
cb(JSON.parse(ev.data))
}
this.listenersCount = this.listenersCount || {[wallet.inkey]: 0}
this.listenersCount[wallet.inkey]++
@@ -444,7 +443,7 @@ window.windowMixin = {
data: function () {
return {
toggleSubs: true,
reactionToggle: true,
reactionChoice: 'confettiBothSides',
isUserAuthorized: false,
g: {
offline: !navigator.onLine,
@@ -524,12 +523,8 @@ 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.reactionChoice =
this.$q.localStorage.getItem('lnbits.reactions') || 'confettiBothSides'
this.g.allowedThemes = window.allowedThemes ?? ['bitcoin']