Selaa lähdekoodia

auto update script executed

Toby Chui 1 vuosi sitten
vanhempi
commit
8bf429a31a
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 8 0
      web/components/access.html

+ 8 - 0
web/components/access.html

@@ -1220,6 +1220,14 @@
                     $("<td>").html(`<button class="ui basic red tiny icon button" title"Ban IP" onclick="handleBanIp('${ip}');"><i class="red ban icon"></i></button>`).appendTo(row);
                 }
             });
+
+            if (slicedEntries.length == 0){
+                var row = $("<tr>").appendTo(tableBody);
+                $("<td colspan='3'>").html(`
+                    <i class="ui green circle check icon"></i> There are no HTTP requests recorded today     
+                `).appendTo(row);
+                
+            }
         }
 
         function renderPagination() {