debug: Add DOM structure verification to trace missing contentDiv
All checks were successful
All checks were successful
This commit is contained in:
@@ -802,6 +802,7 @@ function closeStatusPanel() {
|
|||||||
async function refreshStatusPanel() {
|
async function refreshStatusPanel() {
|
||||||
const panel = document.getElementById('status-panel');
|
const panel = document.getElementById('status-panel');
|
||||||
const contentDiv = document.getElementById('status-content');
|
const contentDiv = document.getElementById('status-content');
|
||||||
|
console.log('[Status] panel found:', !!panel, 'contentDiv found:', !!contentDiv, 'panel display:', panel?.style?.display);
|
||||||
if (!panel || panel.style.display === 'none') return;
|
if (!panel || panel.style.display === 'none') return;
|
||||||
console.log('[Status] Refreshing status panel...');
|
console.log('[Status] Refreshing status panel...');
|
||||||
try {
|
try {
|
||||||
@@ -927,7 +928,11 @@ function renderStatusPanel(data, panel) {
|
|||||||
html += `</tbody></table></div></div>`;
|
html += `</tbody></table></div></div>`;
|
||||||
// Render into status-content div, not the whole panel (preserves webhooks section)
|
// Render into status-content div, not the whole panel (preserves webhooks section)
|
||||||
const contentDiv = document.getElementById('status-content');
|
const contentDiv = document.getElementById('status-content');
|
||||||
console.log('[Status] contentDiv found:', !!contentDiv, 'HTML length:', html.length);
|
const panelCheck = document.getElementById('status-panel');
|
||||||
|
console.log('[Status] contentDiv found:', !!contentDiv, 'panel children:', panelCheck?.children?.length, 'HTML length:', html.length);
|
||||||
|
if (panelCheck) {
|
||||||
|
console.log('[Status] panel innerHTML preview:', panelCheck.innerHTML.substring(0, 200));
|
||||||
|
}
|
||||||
if (contentDiv) {
|
if (contentDiv) {
|
||||||
contentDiv.innerHTML = html;
|
contentDiv.innerHTML = html;
|
||||||
console.log('[Status] HTML rendered, contentDiv innerHTML length:', contentDiv.innerHTML.length);
|
console.log('[Status] HTML rendered, contentDiv innerHTML length:', contentDiv.innerHTML.length);
|
||||||
|
|||||||
Reference in New Issue
Block a user