mirror of
https://github.com/swissmakers/fail2ban-ui.git
synced 2026-04-27 02:18:58 +02:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
// =========================================================================
|
||||
|
||||
Reference in New Issue
Block a user