diff --git a/src/frontend/src/modals/shareModal/index.tsx b/src/frontend/src/modals/shareModal/index.tsx index e64c650d4..4c6c23ea6 100644 --- a/src/frontend/src/modals/shareModal/index.tsx +++ b/src/frontend/src/modals/shareModal/index.tsx @@ -1,3 +1,4 @@ +import { Loader2 } from "lucide-react"; import { ReactNode, useContext, useEffect, useMemo, useState } from "react"; import EditFlowSettings from "../../components/EditFlowSettingsComponent"; import IconComponent from "../../components/genericIconComponent"; @@ -168,8 +169,18 @@ export default function ShareModal({
@@ -185,8 +196,18 @@ export default function ShareModal({ }} type="button" > - {is_component ? "Save and " : ""}Share{" "} - {!is_component ? "Flow" : ""} + {loadingNames ? ( + <> +
+ +
+ + ) : ( + <> + {is_component && !loadingNames ? "Save and " : ""}Share{" "} + {!is_component && !loadingNames ? "Flow" : ""} + + )} )}