mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-17 10:05:59 +08:00
fix the tooltip in tool nodes (#8215)
This commit is contained in:
parent
d109881410
commit
d4dc54447a
@ -70,15 +70,15 @@ const Form: FC<FormProps> = ({
|
|||||||
const renderField = (formSchema: CredentialFormSchema) => {
|
const renderField = (formSchema: CredentialFormSchema) => {
|
||||||
const tooltip = formSchema.tooltip
|
const tooltip = formSchema.tooltip
|
||||||
const tooltipContent = (tooltip && (
|
const tooltipContent = (tooltip && (
|
||||||
<span className='ml-1'>
|
<Tooltip
|
||||||
<Tooltip
|
popupContent={
|
||||||
popupContent={
|
<div className='w-[200px]'>
|
||||||
<div className='w-[200px]'>
|
{tooltip[language] || tooltip.en_US}
|
||||||
{tooltip[language] || tooltip.en_US}
|
</div>}
|
||||||
</div>}
|
triggerClassName='ml-1 w-4 h-4'
|
||||||
triggerClassName='w-4 h-4'
|
asChild={false}
|
||||||
/>
|
/>
|
||||||
</span>))
|
))
|
||||||
if (formSchema.type === FormTypeEnum.textInput || formSchema.type === FormTypeEnum.secretInput || formSchema.type === FormTypeEnum.textNumber) {
|
if (formSchema.type === FormTypeEnum.textInput || formSchema.type === FormTypeEnum.secretInput || formSchema.type === FormTypeEnum.textNumber) {
|
||||||
const {
|
const {
|
||||||
variable,
|
variable,
|
||||||
|
@ -219,7 +219,7 @@ const Result: FC<IResultProps> = ({
|
|||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
onIterationNext: () => {
|
onIterationNext: () => {
|
||||||
setWorkflowProccessData(produce(getWorkflowProccessData()!, (draft) => {
|
setWorkflowProcessData(produce(getWorkflowProcessData()!, (draft) => {
|
||||||
draft.expand = true
|
draft.expand = true
|
||||||
const iterations = draft.tracing.find(item => item.node_id === data.node_id
|
const iterations = draft.tracing.find(item => item.node_id === data.node_id
|
||||||
&& (item.execution_metadata?.parallel_id === data.execution_metadata?.parallel_id || item.parallel_id === data.execution_metadata?.parallel_id))!
|
&& (item.execution_metadata?.parallel_id === data.execution_metadata?.parallel_id || item.parallel_id === data.execution_metadata?.parallel_id))!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user