Add global threat map to the ban insights modal for better overview from where the most bans are (red pier)

This commit is contained in:
2026-02-20 15:24:58 +01:00
parent a770fccbae
commit 9cdb2966ea
11 changed files with 265 additions and 0 deletions

View File

@@ -18,6 +18,9 @@ function closeModal(modalId) {
if (!modal || modal.classList.contains('hidden')) {
return;
}
if (modalId === 'banInsightsModal' && typeof destroyInsightsGlobe === 'function') {
destroyInsightsGlobe();
}
modal.classList.add('hidden');
openModalCount = Math.max(0, openModalCount - 1);
updateBodyScrollLock();
@@ -186,6 +189,9 @@ function openBanInsightsModal() {
updateTranslations();
}
openModal('banInsightsModal');
if (typeof renderInsightsGlobe === 'function') {
setTimeout(renderInsightsGlobe, 150);
}
}
// =========================================================================