workflows: move down legacy "POST formdata" webservice action option (#43614)
gitea-wip/wcs/pipeline/head There was a failure building this commit Details
gitea/wcs/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2021-10-24 16:53:58 +02:00
parent 6300d8d344
commit c824568bca
1 changed files with 2 additions and 1 deletions

View File

@ -246,7 +246,7 @@ class WebserviceCallStatusItem(WorkflowStatusItem):
form.add(
CheckboxWidget,
'%spost' % prefix,
title=_('Post formdata'),
title=_('Post all formdata in request (legacy)'),
value=self.post,
attrs={
'data-dynamic-display-child-of': '%smethod' % prefix,
@ -254,6 +254,7 @@ class WebserviceCallStatusItem(WorkflowStatusItem):
[str(_(methods['POST'])), str(_(methods['PUT'])), str(_(methods['PATCH']))]
),
},
advanced=not (self.post),
)
if 'post_data' in parameters:
form.add(