feat: end support readonly

This commit is contained in:
Joel
2024-03-20 16:00:41 +08:00
parent b35d9f6c36
commit df274416f9

View File

@@ -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