diff --git a/wwwroot/sub_distributors_list/index.ui b/wwwroot/sub_distributors_list/index.ui index 52f6f15..1a8be25 100644 --- a/wwwroot/sub_distributors_list/index.ui +++ b/wwwroot/sub_distributors_list/index.ui @@ -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'))" } ]