mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Remove top clients table if no data is returned (privacy mode!)
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -488,6 +488,12 @@ function updateTopClientsChart() {
|
||||
|
||||
}
|
||||
|
||||
// Remove table if there are no results (e.g. privacy mode enabled)
|
||||
if(jQuery.isEmptyObject(data.top_sources))
|
||||
{
|
||||
$("#client-frequency").parent().remove();
|
||||
}
|
||||
|
||||
$("#client-frequency .overlay").hide();
|
||||
// Update top clients list data every ten seconds
|
||||
setTimeout(updateTopClientsChart, 10000);
|
||||
|
||||
Reference in New Issue
Block a user