mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 03:36:36 +08:00
fix(trigger): subscription schema config not display field description
This commit is contained in:
parent
62fbc90389
commit
00fdd06179
@ -391,6 +391,7 @@ export const CommonCreateModal = ({ onClose, createType, builder }: Props) => {
|
|||||||
const normalizedType = normalizeFormType(schema.type as FormTypeEnum | string)
|
const normalizedType = normalizeFormType(schema.type as FormTypeEnum | string)
|
||||||
return {
|
return {
|
||||||
...schema,
|
...schema,
|
||||||
|
tooltip: schema.description,
|
||||||
type: normalizedType,
|
type: normalizedType,
|
||||||
dynamicSelectParams: normalizedType === FormTypeEnum.dynamicSelect ? {
|
dynamicSelectParams: normalizedType === FormTypeEnum.dynamicSelect ? {
|
||||||
plugin_id: detail?.plugin_id || '',
|
plugin_id: detail?.plugin_id || '',
|
||||||
@ -404,7 +405,7 @@ export const CommonCreateModal = ({ onClose, createType, builder }: Props) => {
|
|||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
ref={autoCommonParametersFormRef}
|
ref={autoCommonParametersFormRef}
|
||||||
labelClassName='system-sm-medium mb-2 block text-text-primary'
|
labelClassName='system-sm-medium mb-2 flex items-center gap-1 text-text-primary'
|
||||||
formClassName='space-y-4'
|
formClassName='space-y-4'
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
@ -412,9 +413,12 @@ export const CommonCreateModal = ({ onClose, createType, builder }: Props) => {
|
|||||||
{manualPropertiesSchema.length > 0 && (
|
{manualPropertiesSchema.length > 0 && (
|
||||||
<div className='mb-6'>
|
<div className='mb-6'>
|
||||||
<BaseForm
|
<BaseForm
|
||||||
formSchemas={manualPropertiesSchema}
|
formSchemas={manualPropertiesSchema.map(schema => ({
|
||||||
|
...schema,
|
||||||
|
tooltip: schema.description,
|
||||||
|
}))}
|
||||||
ref={manualPropertiesFormRef}
|
ref={manualPropertiesFormRef}
|
||||||
labelClassName='system-sm-medium mb-2 block text-text-primary'
|
labelClassName='system-sm-medium mb-2 flex items-center gap-1 text-text-primary'
|
||||||
formClassName='space-y-4'
|
formClassName='space-y-4'
|
||||||
onChange={handleManualPropertiesChange}
|
onChange={handleManualPropertiesChange}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user