Skip to content

Commit

Permalink
fix(ui): ui settings not persisted (#3914)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando authored Sep 26, 2024
1 parent b9dd414 commit 1bea0e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2016,6 +2016,7 @@ export default {
if (!deepEqual(this.newZwave, this.zwave)) return true
if (!deepEqual(this.newBackup, this.backup)) return true
if (!deepEqual(this.newZniffer, this.zniffer)) return true
if (!deepEqual(this.ui, this.prevUi)) return true
return false
},
Expand Down Expand Up @@ -2118,6 +2119,7 @@ export default {
dialogValue: false,
sslDisabled: false,
saving: false,
prevUi: null,
newGateway: {},
newMqtt: {},
newZwave: {
Expand Down Expand Up @@ -2561,6 +2563,14 @@ export default {
this.newZniffer = copy(this.zniffer)
this.newMqtt = copy(this.mqtt)
this.newBackup = copy(this.backup)
if (this.prevUi) {
this.internalDarkMode = this.prevUi.darkMode
this.internalNavTabs = this.prevUi.navTabs
this.internalStreamerMode = this.prevUi.streamerMode
} else {
this.prevUi = copy(this.ui)
}
},
async getConfig() {
try {
Expand Down

0 comments on commit 1bea0e7

Please sign in to comment.