From 60883ebdb7613b8961c014800554d44ada023783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Sun, 26 Feb 2023 22:11:10 +0100 Subject: [PATCH] Fix successful temperature notification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- scripts/pi-hole/js/footer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/footer.js b/scripts/pi-hole/js/footer.js index e982c0d69..bf3ff7dc9 100644 --- a/scripts/pi-hole/js/footer.js +++ b/scripts/pi-hole/js/footer.js @@ -6,6 +6,7 @@ * Please see LICENSE file for your rights under this license. */ /* global utils:false */ + //The following functions allow us to display time until pi-hole is enabled after disabling. //Works between all pages @@ -185,8 +186,9 @@ function initCPUtemp() { var token = encodeURIComponent($("#token").text()); $.getJSON("api.php?setTempUnit=" + unit + "&token=" + token, function (data) { if (showmsg === true) { + utils.showAlert("info", "", "Setting temperature unit..."); if ("result" in data && data.result === "success") { - utils.showAlert("success", "", "Temperature unit set to " + unit, ""); + utils.showAlert("success", "far fa-check-circle", "Temperature unit set to " + unit, ""); } else { utils.showAlert("error", "", "", "Temperature unit not set"); }