Remove unused filter_dnsmasq_warnings=true option

Also remove the old code used to read hideNonfatalDnsmasqWarnings_chkbox
from localstorage. This value was a leftover from v5 web interface.

Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2025-10-27 22:02:05 +00:00
parent 2a4dc20003
commit a77fd026e9
2 changed files with 2 additions and 14 deletions

View File

@@ -13,13 +13,7 @@ let table;
const toasts = {}; const toasts = {};
$(() => { $(() => {
const ignoreNonfatal = localStorage const url = document.body.dataset.apiurl + "/info/messages";
? localStorage.getItem("hideNonfatalDnsmasqWarnings_chkbox") === "true"
: false;
const url =
document.body.dataset.apiurl +
"/info/messages" +
(ignoreNonfatal ? "?filter_dnsmasq_warnings=true" : "");
table = $("#messagesTable").DataTable({ table = $("#messagesTable").DataTable({
ajax: { ajax: {
url, url,

View File

@@ -386,14 +386,8 @@ function colorBar(percentage, total, cssClass) {
} }
function checkMessages() { function checkMessages() {
const ignoreNonfatal = localStorage
? localStorage.getItem("hideNonfatalDnsmasqWarnings_chkbox") === "true"
: false;
$.ajax({ $.ajax({
url: url: document.body.dataset.apiurl + "/info/messages/count",
document.body.dataset.apiurl +
"/info/messages/count" +
(ignoreNonfatal ? "?filter_dnsmasq_warnings=true" : ""),
method: "GET", method: "GET",
dataType: "json", dataType: "json",
}) })