fix(plugin-workflow): fix workflow title in binding workflow configuration not showing (#3026)
This commit is contained in:
parent
9dae34a613
commit
83245a406b
@ -715,6 +715,7 @@ function RemoveButton(
|
||||
}
|
||||
|
||||
function WorkflowSelect({ types, ...props }) {
|
||||
const { t } = useTranslation();
|
||||
const index = ArrayTable.useIndex();
|
||||
const { setValuesIn } = useForm();
|
||||
const baseCollection = useCollection();
|
||||
@ -740,7 +741,12 @@ function WorkflowSelect({ types, ...props }) {
|
||||
|
||||
return (
|
||||
<RemoteSelect
|
||||
{...props}
|
||||
manual={false}
|
||||
placeholder={t('Select workflow', { ns: 'workflow' })}
|
||||
fieldNames={{
|
||||
label: 'title',
|
||||
value: 'key',
|
||||
}}
|
||||
service={{
|
||||
resource: 'workflows',
|
||||
action: 'list',
|
||||
@ -752,6 +758,7 @@ function WorkflowSelect({ types, ...props }) {
|
||||
},
|
||||
},
|
||||
}}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@ -847,11 +854,6 @@ function WorkflowConfig() {
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'WorkflowSelect',
|
||||
'x-component-props': {
|
||||
placeholder: t('Select workflow', { ns: 'workflow' }),
|
||||
fieldNames: {
|
||||
label: 'title',
|
||||
value: 'key',
|
||||
},
|
||||
types: workflowTypes.map((item) => item.value),
|
||||
},
|
||||
required: true,
|
||||
|
Loading…
Reference in New Issue
Block a user