fix(ddns): add missing field WebhookRequestType (#436)

* fix(ddns): add missing field WebhookRequestType

* add missing placeholders
This commit is contained in:
UUBulb
2024-10-17 23:35:28 +08:00
committed by GitHub
parent a503f0cf40
commit be7b6e9c5e
9 changed files with 48 additions and 19 deletions

View File

@@ -102,7 +102,8 @@ function showFormModal(modelSelector, formID, URL, getData) {
item.name === "Duration" ||
item.name === "MaxRetries" ||
item.name === "Provider" ||
item.name === "WebhookMethod"
item.name === "WebhookMethod" ||
item.name === "WebhookRequestType"
) {
obj[item.name] = parseInt(item.value);
} else if (item.name.endsWith("Latency")) {
@@ -299,6 +300,9 @@ function addOrEditDDNS(ddns) {
modal
.find("select[name=WebhookMethod]")
.val(ddns ? ddns.WebhookMethod : 1);
modal
.find("select[name=WebhookRequestType]")
.val(ddns ? ddns.WebhookRequestType : 1);
if (ddns && ddns.EnableIPv4) {
modal.find(".ui.enableipv4.checkbox").checkbox("set checked");
} else {