code layout improvement

This commit is contained in:
Lorenzo Venerandi
2026-03-08 12:38:33 +01:00
parent 4df6c1f2ec
commit 347d918789
4 changed files with 9 additions and 29 deletions

View File

@@ -332,6 +332,13 @@ window.ipBanAction = async function(ip, action) {
const result = await resp.json().catch(() => ({}));
if (resp.ok) {
krawlModal.success(result.message || `${action} successful for ${ip}`);
const overrides = document.getElementById('overrides-container');
if (overrides) {
htmx.ajax('GET', `${window.__DASHBOARD_PATH__}/htmx/ban/overrides?page=1`, {
target: '#overrides-container',
swap: 'innerHTML'
});
}
} else {
krawlModal.error(result.error || `Failed to ${action} IP ${ip}`);
}