diff --git a/pkgs/clan-app/ui/src/index.tsx b/pkgs/clan-app/ui/src/index.tsx index d9a863abb..30527f55d 100644 --- a/pkgs/clan-app/ui/src/index.tsx +++ b/pkgs/clan-app/ui/src/index.tsx @@ -22,7 +22,7 @@ import { ApiTester } from "./api_test"; import { IconVariant } from "./components/icon"; import { Components } from "./routes/components"; import { activeURI } from "./App"; -import { VarsForMachine, VarsStep } from "./routes/machines/install/vars-step"; +import { VarsPage, VarsForm } from "./routes/machines/install/vars-step"; import { ThreePlayground } from "./three"; export const client = new QueryClient(); @@ -79,7 +79,7 @@ export const routes: AppRoute[] = [ path: "/:id/vars", label: "Vars", hidden: true, - component: () => , + component: () => , }, ], }, diff --git a/pkgs/clan-app/ui/src/routes/machines/details.tsx b/pkgs/clan-app/ui/src/routes/machines/details.tsx index 74b1b389f..70e3a0575 100644 --- a/pkgs/clan-app/ui/src/routes/machines/details.tsx +++ b/pkgs/clan-app/ui/src/routes/machines/details.tsx @@ -293,7 +293,19 @@ const InstallMachine = (props: InstallMachineProps) => { /> -
TODO: vars
+ { + const prev = getValue(formStore, "3"); + setValue(formStore, "3", { ...prev, ...data }); + handleNext(); + }} + initial={getValue(formStore, "3") || {}} + footer={