mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Hide "Whitelist" button on wildcard blocked entries (Query Log page)
This commit is contained in:
@@ -103,10 +103,14 @@ $(document).ready(function() {
|
||||
tableApi = $("#all-queries").DataTable( {
|
||||
"rowCallback": function( row, data, index ){
|
||||
status = data[4];
|
||||
if (status.substr(0,2) === "Pi") {
|
||||
if (status === "Pi-holed (exact)") {
|
||||
$(row).css("color","red");
|
||||
$("td:eq(5)", row).html( "<button style=\"color:green; white-space: nowrap;\"><i class=\"fa fa-pencil-square-o\"></i> Whitelist</button>" );
|
||||
}
|
||||
else if (status === "Pi-holed (wildcard)") {
|
||||
$(row).css("color","red");
|
||||
$("td:eq(5)", row).html( "" );
|
||||
}
|
||||
else{
|
||||
$(row).css("color","green");
|
||||
$("td:eq(5)", row).html( "<button style=\"color:red; white-space: nowrap;\"><i class=\"fa fa-ban\"></i> Blacklist</button>" );
|
||||
|
||||
Reference in New Issue
Block a user