Make sure the table is redrawn after the dnssec API call returns

Without this, the icons won't show up on the initial table draw because the
asynchronous AJAX call usually only completes after that.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2025-10-29 17:58:34 -03:00
parent 2a7d10ebfb
commit 5e3000c141

View File

@@ -34,6 +34,9 @@ let doDNSSEC = false;
function getDnssecConfig() {
$.getJSON(document.body.dataset.apiurl + "/config/dns/dnssec", data => {
doDNSSEC = data.config.dns.dnssec;
// redraw the table to show the icons when the API call returns
$("#all-queries").DataTable().draw();
});
}