mirror of
https://github.com/pi-hole/web.git
synced 2026-02-27 21:25:14 +00:00
Merge pull request #1600 from rickbau5/fix/enable-ui-elements
Fix UI Remaining Disabled in Groups & Adlists Pages
This commit is contained in:
@@ -222,6 +222,8 @@ function addAdlist() {
|
||||
utils.showAlert("info", "", "Adding adlist...", address);
|
||||
|
||||
if (address.length === 0) {
|
||||
// enable the ui elements again
|
||||
utils.enableAll();
|
||||
utils.showAlert("warning", "", "Warning", "Please specify an adlist address");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -135,6 +135,8 @@ function addGroup() {
|
||||
utils.showAlert("info", "", "Adding group...", name);
|
||||
|
||||
if (name.length === 0) {
|
||||
// enable the ui elements again
|
||||
utils.enableAll();
|
||||
utils.showAlert("warning", "", "Warning", "Please specify a group name");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user