-
Notifications
You must be signed in to change notification settings - Fork 446
Open
Description
Currently, the "preserve dark mode" setting is not working properly, even by uncommenting the required lines in main.js and darkMode.js
The reason is that the value used to set the darkMode key in darkMode.js::localStorage.setItem() should be this.isEnabled ? '1' : '0' instead of this.darkMode ? '1' : '0'.
Indeed, the darkMode ref does not exist.
admin-one-vue-tailwind/src/stores/darkMode.js
Lines 19 to 23 in fffb685
| // You can persist dark mode setting | |
| // if (typeof localStorage !== 'undefined') { | |
| // localStorage.setItem('darkMode', this.darkMode ? '1' : '0') | |
| // } | |
| } |
antho1jp
Metadata
Metadata
Assignees
Labels
No labels