From 96730e6a8b624ca2d5c4b577dc5418dd12355dc9 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 24 May 2023 20:02:05 +0200 Subject: [PATCH] Fix formatting of end-to-end encryption indicator only being done for the own session Signed-off-by: DL6ER --- scripts/pi-hole/js/settings-api.js | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/scripts/pi-hole/js/settings-api.js b/scripts/pi-hole/js/settings-api.js index 506fb7e8..b0e4fea2 100644 --- a/scripts/pi-hole/js/settings-api.js +++ b/scripts/pi-hole/js/settings-api.js @@ -91,21 +91,22 @@ $(function () { data.remote_addr + "" ); - let icon = ""; - let title = ""; - if (data.tls.mixed) { - title = "Session is PARTIALLY end-to-end encrypted"; - icon = "fa-triangle-exclamation"; - } else if (data.tls.login) { - title = "Session is end-to-end encrypted (TLS/SSL)"; - icon = "fa-check"; - } else { - title = "Session is NOT end-to-end encrypted (TLS/SSL)"; - icon = "fa-xmark"; - } - - $("td:eq(3)", row).html(''); } + + let icon = ""; + let title = ""; + if (data.tls.mixed) { + title = "Session is PARTIALLY end-to-end encrypted"; + icon = "fa-triangle-exclamation"; + } else if (data.tls.login) { + title = "Session is end-to-end encrypted (TLS/SSL)"; + icon = "fa-check"; + } else { + title = "Session is NOT end-to-end encrypted (TLS/SSL)"; + icon = "fa-xmark"; + } + + $("td:eq(3)", row).html(''); }, select: { style: "multi",