mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Show "Replace" instead of "Enable" on the action button (also make it warning colored)
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -266,8 +266,12 @@ function processWebServerConfig() {
|
||||
})
|
||||
.done(function (data) {
|
||||
setConfigValues("webserver", "webserver", data.config.webserver);
|
||||
if (data.config.webserver.api.app_pwhash.value.length > 0)
|
||||
if (data.config.webserver.api.app_pwhash.value.length > 0) {
|
||||
$("#existing_apppw_warning").show();
|
||||
$("#apppw_submit").text("Replace app password");
|
||||
$("#apppw_submit").removeClass("btn-success");
|
||||
$("#apppw_submit").addClass("btn-warning");
|
||||
}
|
||||
})
|
||||
.fail(function (data) {
|
||||
apiFailure(data);
|
||||
|
||||
Reference in New Issue
Block a user