BG image/gradient to light fix (#2945)
This commit is contained in:
parent
4a640dc123
commit
61e8d0059b
2 changed files with 5 additions and 3 deletions
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -622,9 +622,11 @@ window.windowMixin = {
|
||||||
toggleDarkMode() {
|
toggleDarkMode() {
|
||||||
this.$q.dark.toggle()
|
this.$q.dark.toggle()
|
||||||
this.$q.localStorage.set('lnbits.darkMode', this.$q.dark.isActive)
|
this.$q.localStorage.set('lnbits.darkMode', this.$q.dark.isActive)
|
||||||
if (this.gradientChoice && !this.$q.dark.isActive) {
|
if (!this.$q.dark.isActive) {
|
||||||
|
this.bgimageSelection = 'null'
|
||||||
this.$q.localStorage.set('lnbits.gradientBg', false)
|
this.$q.localStorage.set('lnbits.gradientBg', false)
|
||||||
this.$q.localStorage.remove(`lnbits.backgroundImage`)
|
this.$q.localStorage.set('lnbits.backgroundImage', 'null')
|
||||||
|
window.location.hash = '#theme'
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue