diff --git a/langflow.db b/langflow.db index c5b0c3b35..01cb40209 100644 Binary files a/langflow.db and b/langflow.db differ diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index b24e195de..22cd82280 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -126,8 +126,8 @@ export default function App() { }} FallbackComponent={CrashErrorComponent} > -
- +
+
{ let color = current_flow.style?.color || "bg-blue-200"; return ( -
- ⛓️ - {activeTab === "myflow" && ( -
-
- - {emoji} - - + + + { if (value !== "") { @@ -75,11 +67,12 @@ export const MenuBar = ({ activeTab, setRename, rename, flows, tabId }) => { rename={rename} setRename={setRename} /> -
- - - File + + + + File + { openPopUp(); @@ -104,11 +97,10 @@ export const MenuBar = ({ activeTab, setRename, rename, flows, tabId }) => { Code - - - - Edit - + + + Edit + { handleSaveFlow(current_flow); @@ -125,12 +117,10 @@ export const MenuBar = ({ activeTab, setRename, rename, flows, tabId }) => { Rename - - - - Flows - - + + + Flows + { @@ -158,10 +148,8 @@ export const MenuBar = ({ activeTab, setRename, rename, flows, tabId }) => { + -
- )} -
); }; diff --git a/src/frontend/src/components/headerComponent/index.tsx b/src/frontend/src/components/headerComponent/index.tsx index 7951345f3..ac8d85cf3 100644 --- a/src/frontend/src/components/headerComponent/index.tsx +++ b/src/frontend/src/components/headerComponent/index.tsx @@ -1,4 +1,4 @@ -import { SunIcon, MoonIcon, BellIcon } from "lucide-react"; +import { SunIcon, MoonIcon, BellIcon} from "lucide-react"; import { useContext, useState, useEffect } from "react"; import { FaGithub } from "react-icons/fa"; import { Button } from "../ui/button"; @@ -8,7 +8,8 @@ import { alertContext } from "../../contexts/alertContext"; import { darkContext } from "../../contexts/darkContext"; import { PopUpContext } from "../../contexts/popUpContext"; import { typesContext } from "../../contexts/typesContext"; -import MenuBar from "../../pages/MainPage/components/menuBar"; +import MenuBar from "./components/menuBar"; +import { Link } from "react-router-dom"; export default function Header(){ const { @@ -35,7 +36,10 @@ export default function Header(){ } }, [addFlow, flows.length, templates]); return ( -
+
+ +
+ ⛓️ {flows.findIndex((f) => tabId === f.id) !== -1 && - } -
- - + } +
diff --git a/src/frontend/src/pages/MainPage/index.tsx b/src/frontend/src/pages/MainPage/index.tsx index 36e7846be..a1d8ca8b1 100644 --- a/src/frontend/src/pages/MainPage/index.tsx +++ b/src/frontend/src/pages/MainPage/index.tsx @@ -22,7 +22,7 @@ import _ from "lodash"; import { updateFlowInDatabase } from "../../controllers/API"; import { CardComponent } from "./components/cardComponent"; -import { MenuBar } from "./components/menuBar"; +import { MenuBar } from "../../components/headerComponent/components/menuBar"; export default function HomePage() { const { flows,