From 742ebae87855de5e64c43f7cdac6638a1e3c8796 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Fri, 22 Sep 2023 14:32:43 -0300 Subject: [PATCH] feat(nodeToolbarComponent): add "Save" option to the select dropdown in the node toolbar component to allow saving changes made to the node fix(styleUtils): import the "SaveAll" icon from lucide-react to be used in the nodeIconsLucide object --- .../components/nodeToolbarComponent/index.tsx | 103 ++++++++---------- src/frontend/src/utils/styleUtils.ts | 2 + 2 files changed, 49 insertions(+), 56 deletions(-) diff --git a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx index e1e3bd5c4..14984a974 100644 --- a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx @@ -131,67 +131,58 @@ export default function NodeToolbarComponent({ - {isMinimal ? ( - + + +
+
+
- - - - +
+
+
+ + +
+ {" "} + Edit{" "} +
{" "} +
+ +
+ {" "} + Save{" "} +
{" "} +
+ {isMinimal && ( +
{" "} - Edit{" "} -
{" "} + /> + {showNode ? "Minimize" : "Expand"} +
- {isMinimal && ( - -
- - {showNode ? "Minimize" : "Expand"} -
-
- )} -
- - ) : ( - -
- -
-
- )} + )} + + {showModalAdvanced && (