BG image/gradient to light fix (#2945)
This commit is contained in:
Vendored
+1
-1
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()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user