Merge pull request #1610 from pi-hole/fix/query_retries

Add new query status 12 and 13 (retried queries)
This commit is contained in:
Adam Warner
2020-11-08 15:23:00 +00:00
committed by GitHub
3 changed files with 27 additions and 0 deletions

View File

@@ -195,6 +195,12 @@ function getQueryTypes() {
queryType.push(11);
}
if ($("#type_retried").prop("checked")) {
// Multiple IDs correspond to this status
// We request queries with all of them
queryType.push([12, 13]);
}
return queryType.join(",");
}
@@ -317,6 +323,16 @@ $(function () {
buttontext =
'<button type="button" class="btn btn-default btn-sm text-green"><i class="fas fa-check"></i> Whitelist</button>';
break;
case 12:
color = "green";
fieldtext = "Retried";
buttontext = "";
break;
case 13:
color = "green";
fieldtext = "Retried <br class='hidden-lg'>(ignored)";
buttontext = "";
break;
default:
color = "black";
fieldtext = "Unknown";