mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
fix(dashboard): ensure Lucide icons are initialized after all dynamic content renders
- Add lucide.createIcons() calls in renderSessions, renderProjectOverview, renderMcpManager, renderHookManager, renderLiteTasks, showSessionDetailPage - Fixes issue where icons would not appear after page render
This commit is contained in:
@@ -83,6 +83,9 @@ function renderSessions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
container.innerHTML = `<div class="sessions-grid">${sessions.map(session => renderSessionCard(session)).join('')}</div>`;
|
container.innerHTML = `<div class="sessions-grid">${sessions.map(session => renderSessionCard(session)).join('')}</div>`;
|
||||||
|
|
||||||
|
// Initialize Lucide icons after rendering
|
||||||
|
if (typeof lucide !== 'undefined') lucide.createIcons();
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderSessionCard(session) {
|
function renderSessionCard(session) {
|
||||||
|
|||||||
@@ -133,6 +133,9 @@ async function renderHookManager() {
|
|||||||
|
|
||||||
// Attach event listeners
|
// Attach event listeners
|
||||||
attachHookEventListeners();
|
attachHookEventListeners();
|
||||||
|
|
||||||
|
// Initialize Lucide icons
|
||||||
|
if (typeof lucide !== 'undefined') lucide.createIcons();
|
||||||
}
|
}
|
||||||
|
|
||||||
function countHooks(hooks) {
|
function countHooks(hooks) {
|
||||||
|
|||||||
@@ -24,6 +24,9 @@ function renderLiteTasks() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
container.innerHTML = `<div class="sessions-grid">${sessions.map(session => renderLiteTaskCard(session)).join('')}</div>`;
|
container.innerHTML = `<div class="sessions-grid">${sessions.map(session => renderLiteTaskCard(session)).join('')}</div>`;
|
||||||
|
|
||||||
|
// Initialize Lucide icons
|
||||||
|
if (typeof lucide !== 'undefined') lucide.createIcons();
|
||||||
|
|
||||||
// Initialize collapsible sections
|
// Initialize collapsible sections
|
||||||
document.querySelectorAll('.collapsible-header').forEach(header => {
|
document.querySelectorAll('.collapsible-header').forEach(header => {
|
||||||
|
|||||||
@@ -197,6 +197,9 @@ async function renderMcpManager() {
|
|||||||
|
|
||||||
// Attach event listeners for toggle switches
|
// Attach event listeners for toggle switches
|
||||||
attachMcpEventListeners();
|
attachMcpEventListeners();
|
||||||
|
|
||||||
|
// Initialize Lucide icons
|
||||||
|
if (typeof lucide !== 'undefined') lucide.createIcons();
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderMcpServerCard(serverName, serverConfig, isEnabled, isInCurrentProject) {
|
function renderMcpServerCard(serverName, serverConfig, isEnabled, isInCurrentProject) {
|
||||||
|
|||||||
Reference in New Issue
Block a user