add global webhook method selector

node-20
Moe 2023-10-03 19:29:31 -07:00
parent 3a3e75c9b8
commit 8b9977fbf8
1 changed files with 23 additions and 1 deletions

View File

@ -240,7 +240,29 @@ module.exports = function(s,config,lang,getSnapshot){
"placeholder": "http://your-webhook-point/onEvent/{{INNER_EVENT_TITLE}}?info={{INNER_EVENT_INFO}}",
"field": lang["Webhook URL"],
"form-group-class":"u_global_webhook_input u_global_webhook_1",
}
},
{
hidden: true,
"name": "detail=global_webhook_method",
"field": lang['Call Method'],
"default": "GET",
"form-group-class":"u_global_webhook_input u_global_webhook_1",
"fieldType": "select",
"possible": [
{
"name": `GET (${lang.Default})`,
"value": "GET"
},
{
"name": "PUT",
"value": "PUT"
},
{
"name": "POST",
"value": "POST"
}
]
},
]
}
s.definitions["Event Filters"].blocks["Action for Selected"].info.push({