fix: dispatch proxmox-all-stats-loaded event on window instead of document

Alpine.js @event.window modifier listens on window object, not document.
This fix ensures the chartsLoaded state becomes true, removing the
max-h-[260px] constraint and allowing all 4 graphs to display.
This commit is contained in:
2025-12-06 07:34:12 -05:00
parent d24fa0140f
commit f8427d8773

View File

@@ -4495,7 +4495,7 @@
if (allExpectedChartsHaveData) {
console.log('All expected charts have received data – stopping stats retries.');
try {
document.dispatchEvent(new CustomEvent('proxmox-all-stats-loaded'));
window.dispatchEvent(new CustomEvent('proxmox-all-stats-loaded'));
} catch (e) {}
return;
}