mirror of
https://github.com/pi-hole/web.git
synced 2026-04-02 08:32:55 +01:00
Show loading overlay when adding/removing CNAME records as it requires a FTL restart (#3742)
This commit is contained in:
@@ -207,6 +207,8 @@ function delCNAME(elem) {
|
||||
"Successfully deleted local CNAME record",
|
||||
elem
|
||||
);
|
||||
// Show loading overlay
|
||||
utils.loadingOverlay(true);
|
||||
$("#cnameRecords-Table").DataTable().ajax.reload(null, false);
|
||||
})
|
||||
.fail((data, exception) => {
|
||||
@@ -267,6 +269,8 @@ $(() => {
|
||||
.done(() => {
|
||||
utils.enableAll();
|
||||
utils.showAlert("success", "fas fa-plus", "Successfully added CNAME record", elem);
|
||||
// Show loading overlay
|
||||
utils.loadingOverlay(true);
|
||||
$("#Cdomain").val("");
|
||||
$("#Ctarget").val("");
|
||||
$("#cnameRecords-Table").DataTable().ajax.reload(null, false);
|
||||
|
||||
Reference in New Issue
Block a user