mirror of
https://github.com/langgenius/dify.git
synced 2026-01-05 22:15:52 +00:00
feat: end support readonly
This commit is contained in:
@@ -15,9 +15,9 @@ const Panel: FC<NodePanelProps<EndNodeType>> = ({
|
||||
data,
|
||||
}) => {
|
||||
const { t } = useTranslation()
|
||||
const readOnly = false
|
||||
|
||||
const {
|
||||
readOnly,
|
||||
inputs,
|
||||
handleVarListChange,
|
||||
handleAddVariable,
|
||||
@@ -31,7 +31,7 @@ const Panel: FC<NodePanelProps<EndNodeType>> = ({
|
||||
<Field
|
||||
title={t(`${i18nPrefix}.output.variable`)}
|
||||
operations={
|
||||
<AddButton onClick={handleAddVariable} />
|
||||
!readOnly ? <AddButton onClick={handleAddVariable} /> : undefined
|
||||
}
|
||||
>
|
||||
<VarList
|
||||
|
||||
Reference in New Issue
Block a user