mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
Inconsistent Theme Persistence in CloudPanel #347
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ItzNotABug on 9/2/2023
CloudPanel version(s) affected
2.3.2
Description
The CloudPanel theme settings don't consistently persist.
While the chosen theme (e.g., dark mode) is saved initially, it occasionally reverts to the default light mode after a day or two of inactivity or if opened in a incognito tab.
This requires users to manually re-select their preferred theme upon subsequent logins.
How to reproduce
Possible Solution
Avoid relying on
Cookies.set('theme', 'dark').Instead, store the theme selection in a manner that's independent of browser sessions, perhaps in a database, ensuring persistence until the user decides to change it.
Additional Context
N/A