mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
feat: Human Input node (Frontend Part) (#31631)
Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: yessenia <yessenia.contact@gmail.com> Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
This commit is contained in:
@ -479,11 +479,21 @@ export const useNodesReadOnly = () => {
|
||||
isRestoring,
|
||||
} = workflowStore.getState()
|
||||
|
||||
return !!(workflowRunningData?.result.status === WorkflowRunningStatus.Running || historyWorkflowData || isRestoring)
|
||||
return !!(
|
||||
workflowRunningData?.result.status === WorkflowRunningStatus.Running
|
||||
|| workflowRunningData?.result.status === WorkflowRunningStatus.Paused
|
||||
|| historyWorkflowData
|
||||
|| isRestoring
|
||||
)
|
||||
}, [workflowStore])
|
||||
|
||||
return {
|
||||
nodesReadOnly: !!(workflowRunningData?.result.status === WorkflowRunningStatus.Running || historyWorkflowData || isRestoring),
|
||||
nodesReadOnly: !!(
|
||||
workflowRunningData?.result.status === WorkflowRunningStatus.Running
|
||||
|| workflowRunningData?.result.status === WorkflowRunningStatus.Paused
|
||||
|| historyWorkflowData
|
||||
|| isRestoring
|
||||
),
|
||||
getNodesReadOnly,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user