diff --git a/src/frontend/src/components/headerComponent/components/menuBar/index.tsx b/src/frontend/src/components/headerComponent/components/menuBar/index.tsx index 73331fb27..5d60f9fac 100644 --- a/src/frontend/src/components/headerComponent/components/menuBar/index.tsx +++ b/src/frontend/src/components/headerComponent/components/menuBar/index.tsx @@ -33,6 +33,7 @@ export const MenuBar = ({ const n = useFlowStore((state) => state.nodes); const navigate = useNavigate(); + const isBuilding = useFlowStore((state) => state.isBuilding); function handleAddFlow() { try { @@ -45,6 +46,15 @@ export const MenuBar = ({ } } + function printByBuildStatus() { + if (isBuilding) { + return "Building..."; + } else if (saveLoading) { + return "Saving..."; + } + return "Saved"; + } + return currentFlow ? (
- {children}
-
- );
- },
- }}
- >
- {chat_message}
-
+ {children}
+
+ );
+ },
+ }}
+ >
+ {chat_message}
+
+ ),
+ [chat.message, chat_message]
+ )}
+ {parts}
; - }) - : chat.message.toString()} -{parts}
; + }) + : chat.message.toString()} + + > + ) : ( + {chat.message.toString()} + )} +