]> git.giorgioravera.it Git - network-manager.git/commitdiff
Fixed loader with empty result
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 26 May 2026 12:41:48 +0000 (14:41 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 26 May 2026 12:41:48 +0000 (14:41 +0200)
frontend/js/aliases.js
frontend/js/devices.js
frontend/js/hosts.js
frontend/js/leases.js

index f34e486a78f563de7473e59b23a51d91e0b203a7..2d88a9f06a040ecb89991ae492e0f2301d00ff04 100644 (file)
@@ -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;
     }
 
index e2da545917f01ad6d7142346a901c46745cc71c0..af886f702b13d7b3e1433d2074c89d88608e0860 100644 (file)
@@ -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;
     }
 
index c69c42b8aa0bb7acc46f1f755405c8b47b22bb8b..9b7795c71054777b7906838b0263a4dc04744a7b 100644 (file)
@@ -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;
     }
 
index f8e496b0db378947b6dbea44c3a3a208162265dd..4e9adc9680ce0553f27660325e5270b312387986 100644 (file)
@@ -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;
     }