fix: change toolbar binds from dspy to script actiontype
This commit is contained in:
parent
0129866c00
commit
8d9f31d7ad
@ -321,17 +321,8 @@
|
|||||||
{
|
{
|
||||||
"wid": "self",
|
"wid": "self",
|
||||||
"event": "distribution_agreements",
|
"event": "distribution_agreements",
|
||||||
"actiontype": "dspy",
|
"actiontype": "script",
|
||||||
"params_mapping": {
|
"script": "bricks_fetch('{{entire_url('../api/ensure_distribution_agreement.dspy')}}',{method:'POST',body:JSON.stringify({sub_reseller_id:data.id})}).then(r=>r.json()).then(r=>bricks.showMessage(r.options.title,r.options.message,r.options.type||'success'))"
|
||||||
"mapping": {
|
|
||||||
"id": "sub_reseller_id"
|
|
||||||
},
|
|
||||||
"need_other": false
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"method": "POST",
|
|
||||||
"url": "{{entire_url('../api/ensure_distribution_agreement.dspy')}}"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user