diff --git a/scripts/pi-hole/js/settings.js b/scripts/pi-hole/js/settings.js index 534b93a3..b8962396 100644 --- a/scripts/pi-hole/js/settings.js +++ b/scripts/pi-hole/js/settings.js @@ -114,6 +114,7 @@ function setConfigValues(topic, key, value) { function saveSettings() { var settings = {}; + utils.disableAll(); $("[data-key]").each(function () { var key = $(this).data("key"); var value = $(this).val(); @@ -168,6 +169,7 @@ function saveSettings() { contentType: "application/json; charset=utf-8", }) .done(function () { + utils.enableAll(); // Success utils.showAlert( "success", @@ -178,7 +180,10 @@ function saveSettings() { // Reload page location.reload(); }) - .fail(function (data) { + .fail(function (data, exception) { + utils.enableAll(); + utils.showAlert("error", "", "Error while applying settings", data.responseText); + console.log(exception); // eslint-disable-line no-console apiFailure(data); }); } diff --git a/settings-dhcp.lp b/settings-dhcp.lp index 5e5b0605..1c0bf7bf 100644 --- a/settings-dhcp.lp +++ b/settings-dhcp.lp @@ -32,7 +32,7 @@ mg.include('scripts/pi-hole/lua/settings_header.lp','r')
Enable this option to enable IPv6 support for the Pi-hole DHCP server. This will allow the Pi-hole to hand out IPv6 addresses to clients and also provide IPv6 router advertisements (RA) to clients. This option is only useful if the Pi-hole is configured with an IPv6 address.