fix: change toolbar binds from dspy to script actiontype
This commit is contained in:
parent
0129866c00
commit
8d9f31d7ad
@ -321,17 +321,8 @@
|
||||
{
|
||||
"wid": "self",
|
||||
"event": "distribution_agreements",
|
||||
"actiontype": "dspy",
|
||||
"params_mapping": {
|
||||
"mapping": {
|
||||
"id": "sub_reseller_id"
|
||||
},
|
||||
"need_other": false
|
||||
},
|
||||
"options": {
|
||||
"method": "POST",
|
||||
"url": "{{entire_url('../api/ensure_distribution_agreement.dspy')}}"
|
||||
}
|
||||
"actiontype": "script",
|
||||
"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'))"
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user