diff --git a/web/app/components/rag-pipeline/components/panel/test-run/document-processing/actions.tsx b/web/app/components/rag-pipeline/components/panel/test-run/document-processing/actions.tsx index 2fbb9a9df1..2f86ec1098 100644 --- a/web/app/components/rag-pipeline/components/panel/test-run/document-processing/actions.tsx +++ b/web/app/components/rag-pipeline/components/panel/test-run/document-processing/actions.tsx @@ -2,6 +2,8 @@ import React from 'react' import Button from '@/app/components/base/button' import { useTranslation } from 'react-i18next' import type { CustomActionsProps } from '@/app/components/base/form/components/form/actions' +import { useStore } from '@/app/components/workflow/store' +import { WorkflowRunningStatus } from '@/app/components/workflow/types' type ActionsProps = { formParams: CustomActionsProps @@ -14,6 +16,8 @@ const Actions = ({ }: ActionsProps) => { const { t } = useTranslation() const { form, isSubmitting, canSubmit } = formParams + const workflowRunningData = useStore(s => s.workflowRunningData) + const isRunning = workflowRunningData?.result.status === WorkflowRunningStatus.Running return (