Show loading overlay when adding/removing CNAME records as it requires a FTL restart (#3742)

This commit is contained in:
yubiuser
2026-03-19 00:08:02 +01:00
committed by GitHub

View File

@@ -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);