add global webhook method selector
parent
3a3e75c9b8
commit
8b9977fbf8
|
@ -240,8 +240,30 @@ module.exports = function(s,config,lang,getSnapshot){
|
||||||
"placeholder": "http://your-webhook-point/onEvent/{{INNER_EVENT_TITLE}}?info={{INNER_EVENT_INFO}}",
|
"placeholder": "http://your-webhook-point/onEvent/{{INNER_EVENT_TITLE}}?info={{INNER_EVENT_INFO}}",
|
||||||
"field": lang["Webhook URL"],
|
"field": lang["Webhook URL"],
|
||||||
"form-group-class":"u_global_webhook_input u_global_webhook_1",
|
"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({
|
s.definitions["Event Filters"].blocks["Action for Selected"].info.push({
|
||||||
"name": "actions=global_webhook",
|
"name": "actions=global_webhook",
|
||||||
|
|
Loading…
Reference in New Issue