feat: set visibility of actions
This commit is contained in:
@@ -95,6 +95,10 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
|
|||||||
const hasScrapeSchemaAction = workflow.workflow.some(pair =>
|
const hasScrapeSchemaAction = workflow.workflow.some(pair =>
|
||||||
pair.what.some(action => action.action === "scrapeSchema")
|
pair.what.some(action => action.action === "scrapeSchema")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
setShowCaptureList(!(hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction));
|
||||||
|
setShowCaptureScreenshot(!(hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction));
|
||||||
|
setShowCaptureText(!(hasScrapeListAction || hasScreenshotAction));
|
||||||
}, [workflow]);
|
}, [workflow]);
|
||||||
|
|
||||||
const handleTextLabelChange = (id: number, label: string, listId?: number, fieldKey?: string) => {
|
const handleTextLabelChange = (id: number, label: string, listId?: number, fieldKey?: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user