From ccf0a5752d360191045532975eda44e9529aed2b Mon Sep 17 00:00:00 2001 From: jZonG Date: Fri, 18 Apr 2025 11:52:42 +0800 Subject: [PATCH] variable inspect button --- .../components/workflow/operator/index.tsx | 2 + .../workflow/variable-inspect/trigger.tsx | 53 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 web/app/components/workflow/variable-inspect/trigger.tsx diff --git a/web/app/components/workflow/operator/index.tsx b/web/app/components/workflow/operator/index.tsx index c762899902..702f94184b 100644 --- a/web/app/components/workflow/operator/index.tsx +++ b/web/app/components/workflow/operator/index.tsx @@ -2,6 +2,7 @@ import { memo, useEffect, useMemo, useRef } from 'react' import { MiniMap } from 'reactflow' import UndoRedo from '../header/undo-redo' import ZoomInOut from './zoom-in-out' +import Trigger from '../variable-inspect/trigger' import { useStore } from '../store' export type OperatorProps = { @@ -49,6 +50,7 @@ const Operator = ({ handleUndo, handleRedo }: OperatorProps) => { >
+
{ + return ( +
+ {/* view button */} +
{}} + > + Variable inspect +
+ {/* caching button */} +
{}} + > + + Caching running status +
+ {/* stop button */} + +
{}} + > + +
+
+ {/* finish button */} +
{}} + > + View cached variables +
+ {/* clear button */} +
{}} + > + Clear +
+
+ ) +} + +export default VariableInspectTrigger