Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

FIX: Hide Step Execution Buttons (#566)

Tahier Hussaind761fbcc5cdc
diff --git a/frontend/src/components/agency/actions/Actions.jsx b/frontend/src/components/agency/actions/Actions.jsx
index 62ae9dc44..2d088aa20 100644
--- a/frontend/src/components/agency/actions/Actions.jsx
+++ b/frontend/src/components/agency/actions/Actions.jsx
@@ -432,49 +432,51 @@ function Actions({ statusBarMsg, initializeWfComp, stepLoader }) {
</Button>
</Tooltip>
<Divider type="vertical" />
- <Tooltip title="Start step execution">
- <Button
- onClick={() =>
- apiOpsPresent
- ? getInputFile(true, true, 0)
- : handleWfExecution(true, true, 0)
- }
- disabled={
- disableAction() || handleDisable(0) || DISABLE_STEP_EXECUTION
- }
- loading={execType === "STEP"}
- >
- <StepIcon className="step-icon" />
- </Button>
- </Tooltip>
- <Tooltip title="Next step">
- <Button
- onClick={() => handleWfExecution(false, true, 1)}
- disabled={handleDisable(1) || DISABLE_STEP_EXECUTION}
- loading={stepExecType === wfExecutionTypes[1]}
- >
- <StepForwardOutlined />
- </Button>
- </Tooltip>
- <Tooltip title="Execute remaining steps">
- <Button
- onClick={() => handleWfExecution(false, true, 3)}
- disabled={handleDisable(3) || DISABLE_STEP_EXECUTION}
- loading={stepExecType === wfExecutionTypes[3]}
- >
- <FastForwardOutlined />
- </Button>
- </Tooltip>
- <Tooltip title="Stop execution">
- <Button
- onClick={() => handleWfExecution(false, true, 2)}
- disabled={handleDisable(2) || DISABLE_STEP_EXECUTION}
- loading={stepExecType === wfExecutionTypes[2]}
- >
- <StopOutlined />
- </Button>
- </Tooltip>
- <Divider type="vertical" />
+ {!DISABLE_STEP_EXECUTION && (
+ <>
+ <Tooltip title="Start step execution">
+ <Button
+ onClick={() =>
+ apiOpsPresent
+ ? getInputFile(true, true, 0)
+ : handleWfExecution(true, true, 0)
+ }
+ disabled={disableAction() || handleDisable(0)}
+ loading={execType === "STEP"}
+ >
+ <StepIcon className="step-icon" />
+ </Button>
+ </Tooltip>
+ <Tooltip title="Next step">
+ <Button
+ onClick={() => handleWfExecution(false, true, 1)}
+ disabled={handleDisable(1)}
+ loading={stepExecType === wfExecutionTypes[1]}
+ >
+ <StepForwardOutlined />
+ </Button>
+ </Tooltip>
+ <Tooltip title="Execute remaining steps">
+ <Button
+ onClick={() => handleWfExecution(false, true, 3)}
+ disabled={handleDisable(3)}
+ loading={stepExecType === wfExecutionTypes[3]}
+ >
+ <FastForwardOutlined />
+ </Button>
+ </Tooltip>
+ <Tooltip title="Stop execution">
+ <Button
+ onClick={() => handleWfExecution(false, true, 2)}
+ disabled={handleDisable(2)}
+ loading={stepExecType === wfExecutionTypes[2]}
+ >
+ <StopOutlined />
+ </Button>
+ </Tooltip>
+ <Divider type="vertical" />
+ </>
+ )}
<Tooltip title="Clear Cache">
<Button disabled={isLoading} onClick={handleClearCache}>
<ClearOutlined />