From b72326e1d3b83dea2b67f2c594b541a034d17841 Mon Sep 17 00:00:00 2001 From: SwiftyOS Date: Thu, 26 Sep 2024 12:28:41 +0200 Subject: [PATCH] moved outputs down and disabled toggle --- .../frontend/src/components/CustomNode.tsx | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/autogpt_platform/frontend/src/components/CustomNode.tsx b/autogpt_platform/frontend/src/components/CustomNode.tsx index 1dea9dd0b8..f5d4a5d4c0 100644 --- a/autogpt_platform/frontend/src/components/CustomNode.tsx +++ b/autogpt_platform/frontend/src/components/CustomNode.tsx @@ -601,29 +601,7 @@ export function CustomNode({ data, id, width, height }: NodeProps) { generateInputHandles(data.inputSchema, data.uiType)} )} - {isOutputOpen && data.uiType !== BlockUIType.NOTE && ( -
- {(data.executionResults?.length ?? 0) > 0 ? ( - <> - -
- -
- - ) : ( - No outputs yet - )} -
- )} + {/* Advanced Settings */} {data.uiType !== BlockUIType.NOTE && hasAdvancedFields && ( <> @@ -652,7 +630,30 @@ export function CustomNode({ data, id, width, height }: NodeProps) { ) : ( <> )} - +{/* Display Outputs */} +{isOutputOpen && data.uiType !== BlockUIType.NOTE && ( +
+ {(data.executionResults?.length ?? 0) > 0 ? ( + <> + +
+ +
+ + ) : ( + <> + )} +
+ )}