diff --git a/pkgs/clan-app/ui/src/routes/Machine/Machine.tsx b/pkgs/clan-app/ui/src/routes/Machine/Machine.tsx index 5a3964e33..119b7ed04 100644 --- a/pkgs/clan-app/ui/src/routes/Machine/Machine.tsx +++ b/pkgs/clan-app/ui/src/routes/Machine/Machine.tsx @@ -1,8 +1,10 @@ import { RouteSectionProps, useNavigate } from "@solidjs/router"; import { SidebarPane } from "@/src/components/Sidebar/SidebarPane"; import { navigateToClan, useClanURI, useMachineName } from "@/src/hooks/clan"; -import { Show } from "solid-js"; +import { createSignal, Show } from "solid-js"; import { SectionGeneral } from "./SectionGeneral"; +import { InstallModal } from "@/src/workflows/Install/install"; +import { Button } from "@/src/components/Button/Button"; export const Machine = (props: RouteSectionProps) => { const navigate = useNavigate(); @@ -13,10 +15,30 @@ export const Machine = (props: RouteSectionProps) => { navigateToClan(navigate, clanURI); }; - const machineName = useMachineName(); + const [showInstall, setShowModal] = createSignal(false); + let container: Node; return ( + + +
(container = el)} + > + setShowModal(false)} + /> +
+
diff --git a/pkgs/clan-app/ui/src/workflows/Install/install.tsx b/pkgs/clan-app/ui/src/workflows/Install/install.tsx index 5bfbc5fab..e7bb12c94 100644 --- a/pkgs/clan-app/ui/src/workflows/Install/install.tsx +++ b/pkgs/clan-app/ui/src/workflows/Install/install.tsx @@ -41,6 +41,8 @@ const InstallStepper = () => { export interface InstallModalProps { machineName: string; initialStep?: InstallSteps[number]["id"]; + mount?: Node; + onClose?: () => void; } const steps = [ @@ -80,9 +82,11 @@ export const InstallModal = (props: InstallModalProps) => { return ( { - console.log("Install aborted"); + console.log("Install modal closed"); + props.onClose?.(); }} // @ts-expect-error some steps might not have metaHeader={stepper.currentStep()?.title ? : undefined}