From d3ac2fed8d42a138f867c32b478a640c3d8ea8a8 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 26 Jun 2024 11:03:28 +0200 Subject: [PATCH] Remove "Remove currently set app password" button if none is actually set Signed-off-by: DL6ER --- scripts/pi-hole/js/settings-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/settings-api.js b/scripts/pi-hole/js/settings-api.js index 88b3510e..07ac488c 100644 --- a/scripts/pi-hole/js/settings-api.js +++ b/scripts/pi-hole/js/settings-api.js @@ -273,7 +273,7 @@ function processWebServerConfig() { $("#apppw_submit").text("Replace app password"); $("#apppw_submit").removeClass("btn-success"); $("#apppw_submit").addClass("btn-warning"); - } + } else $("#apppw_clear").hide(); }) .fail(function (data) { apiFailure(data);