From c90df5c12c5170d25dc6306e3d923e32296da882 Mon Sep 17 00:00:00 2001 From: zhsama Date: Tue, 21 Oct 2025 19:53:29 +0800 Subject: [PATCH] refactor(entry-node): remove showIndicator prop and related logic for cleaner component structure --- .../nodes/_base/components/entry-node-container.tsx | 7 +------ web/app/components/workflow/nodes/_base/node.tsx | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/entry-node-container.tsx b/web/app/components/workflow/nodes/_base/components/entry-node-container.tsx index 4aa9920e88..d3fb38269a 100644 --- a/web/app/components/workflow/nodes/_base/components/entry-node-container.tsx +++ b/web/app/components/workflow/nodes/_base/components/entry-node-container.tsx @@ -8,7 +8,6 @@ type EntryNodeContainerProps = { children: ReactNode status?: EntryNodeStatus customLabel?: string - showIndicator?: boolean nodeType?: 'start' | 'trigger' } @@ -16,7 +15,6 @@ const EntryNodeContainer: FC = ({ children, status = 'enabled', customLabel, - showIndicator = true, nodeType = 'trigger', }) => { const { t } = useTranslation() @@ -36,10 +34,7 @@ const EntryNodeContainer: FC = ({ return (
- {showIndicator && ( -
- )} - + {statusConfig.label}
diff --git a/web/app/components/workflow/nodes/_base/node.tsx b/web/app/components/workflow/nodes/_base/node.tsx index bcc9b810ab..0c00030950 100644 --- a/web/app/components/workflow/nodes/_base/node.tsx +++ b/web/app/components/workflow/nodes/_base/node.tsx @@ -363,7 +363,6 @@ const BaseNode: FC = ({ return isEntryNode ? ( {nodeContent}