Loading
Fix chart theme not updating on theme change
What does this MR do and why?
Related to #494 (closed)
Fixes a bug where the dashboard chart does not update its colors when switching between light and dark themes.
The fix adds a reference to store.theme inside the chart computed property in DashboardChart.vue. This makes Vue track the theme as a reactive dependency and re-evaluate the chart config everytime the theme changes.
Screenshots or screen recordings
Before:
After:
Validation steps
- Go to
/dashboard - Note the chart colors in the current theme (light or dark)
- Switch theme using the theme switcher in the navbar
- Observe that the chart colors now update to match the new theme
- Switch back and confirm the colors revert correctly