admin-one-vue-tailwind icon indicating copy to clipboard operation
admin-one-vue-tailwind copied to clipboard

Preserve dark mode setting is not working properly

Open vquelque opened this issue 1 year ago • 2 comments

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

vquelque avatar Oct 25 '23 11:10 vquelque

I second this. I can't get DarkMode to persist at all.

speightashley avatar Nov 17 '23 22:11 speightashley

This was fixed in #59

256javy avatar Jul 15 '24 00:07 256javy