mirror of
https://github.com/langgenius/dify.git
synced 2026-09-19 02:07:44 +08:00
fix(web): name assigner add operation (#40337)
This commit is contained in:
@@ -105,7 +105,7 @@ describe('assigner/panel', () => {
|
||||
}),
|
||||
)
|
||||
|
||||
await user.click(screen.getAllByRole('button')[0]!)
|
||||
await user.click(screen.getByRole('button', { name: 'common.operation.add' }))
|
||||
|
||||
expect(mockUseHandleAddOperationItem).toHaveBeenCalledWith(createData().items)
|
||||
expect(handleOperationListChanges).toHaveBeenCalledWith([
|
||||
|
||||
@@ -38,8 +38,11 @@ const Panel: FC<NodePanelProps<AssignerNodeType>> = ({ id, data }) => {
|
||||
<div className="flex grow flex-col items-start justify-center system-sm-semibold-uppercase text-text-secondary">
|
||||
{t(($) => $[`${i18nPrefix}.variables`], { ns: 'workflow' })}
|
||||
</div>
|
||||
<ActionButton onClick={handleAddOperation}>
|
||||
<RiAddLine className="size-4 shrink-0 text-text-tertiary" />
|
||||
<ActionButton
|
||||
aria-label={t(($) => $['operation.add'], { ns: 'common' })}
|
||||
onClick={handleAddOperation}
|
||||
>
|
||||
<RiAddLine aria-hidden="true" className="size-4 shrink-0 text-text-tertiary" />
|
||||
</ActionButton>
|
||||
</div>
|
||||
<VarList
|
||||
|
||||
Reference in New Issue
Block a user