Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
8bf429a31a
1 changed files with 8 additions and 0 deletions
  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() {