admin-one-vue-tailwind
admin-one-vue-tailwind copied to clipboard
Preserve dark mode setting is not working properly
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.
https://github.com/justboil/admin-one-vue-tailwind/blob/fffb685de6151436ff6f3f0ffd0e0a11b7616df7/src/stores/darkMode.js#L19-L23
I second this. I can't get DarkMode to persist at all.
This was fixed in #59