From: Giorgio Ravera Date: Tue, 26 May 2026 12:41:48 +0000 (+0200) Subject: Fixed loader with empty result X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=7503909fd14b9ba640b07024be0fa901b8605c14;p=network-manager.git Fixed loader with empty result --- diff --git a/frontend/js/aliases.js b/frontend/js/aliases.js index f34e486..2d88a9f 100644 --- a/frontend/js/aliases.js +++ b/frontend/js/aliases.js @@ -84,6 +84,9 @@ async function loadAliases() { tdEmpty.style.textAlign = "center"; trEmpty.appendChild(tdEmpty); tbody.appendChild(trEmpty); + // hide loader and show table + loader.style.display = "none"; + dataTable.classList.remove("d-none"); return; } diff --git a/frontend/js/devices.js b/frontend/js/devices.js index e2da545..af886f7 100644 --- a/frontend/js/devices.js +++ b/frontend/js/devices.js @@ -84,6 +84,9 @@ async function loadDevices() { tdEmpty.style.textAlign = "center"; trEmpty.appendChild(tdEmpty); tbody.appendChild(trEmpty); + // hide loader and show table + loader.style.display = "none"; + dataTable.classList.remove("d-none"); return; } diff --git a/frontend/js/hosts.js b/frontend/js/hosts.js index c69c42b..9b7795c 100644 --- a/frontend/js/hosts.js +++ b/frontend/js/hosts.js @@ -84,6 +84,9 @@ async function loadHosts() { tdEmpty.style.textAlign = "center"; trEmpty.appendChild(tdEmpty); tbody.appendChild(trEmpty); + // hide loader and show table + loader.style.display = "none"; + dataTable.classList.remove("d-none"); return; } diff --git a/frontend/js/leases.js b/frontend/js/leases.js index f8e496b..4e9adc9 100644 --- a/frontend/js/leases.js +++ b/frontend/js/leases.js @@ -83,6 +83,9 @@ async function loadLeases() { tdEmpty.style.textAlign = "center"; trEmpty.appendChild(tdEmpty); tbody.appendChild(trEmpty); + // hide loader and show table + loader.style.display = "none"; + dataTable.classList.remove("d-none"); return; }