mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
fix: Expand analytics sections on mode switch
Sidebar sections are collapsed by default on DOMContentLoaded. When switching to analytics mode, expand all its sections so the dashboard content is visible immediately. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3866,6 +3866,8 @@
|
||||
|
||||
// Initialize/destroy Analytics mode
|
||||
if (mode === 'analytics') {
|
||||
// Expand all analytics sections (sidebar sections default to collapsed)
|
||||
document.querySelectorAll('#analyticsMode .section.collapsed').forEach(s => s.classList.remove('collapsed'));
|
||||
if (typeof Analytics !== 'undefined') Analytics.init();
|
||||
} else {
|
||||
if (typeof Analytics !== 'undefined' && Analytics.destroy) Analytics.destroy();
|
||||
|
||||
Reference in New Issue
Block a user