From 69d8b029d6b163012c6bcc48792258c41da806a5 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Tue, 12 Aug 2025 16:34:33 +0200 Subject: [PATCH] ui/install: fix alignment of some steps --- .../src/workflows/Install/steps/Initial.tsx | 2 +- .../Install/steps/createInstaller.tsx | 19 ++++++++----------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/pkgs/clan-app/ui/src/workflows/Install/steps/Initial.tsx b/pkgs/clan-app/ui/src/workflows/Install/steps/Initial.tsx index 8f8354246..9e709955f 100644 --- a/pkgs/clan-app/ui/src/workflows/Install/steps/Initial.tsx +++ b/pkgs/clan-app/ui/src/workflows/Install/steps/Initial.tsx @@ -7,7 +7,7 @@ import { StepLayout } from "../../Steps"; const ChoiceLocalOrRemote = () => { const stepSignal = useStepper(); return ( -
+
diff --git a/pkgs/clan-app/ui/src/workflows/Install/steps/createInstaller.tsx b/pkgs/clan-app/ui/src/workflows/Install/steps/createInstaller.tsx index 3bae7fc1f..c8fd3ac4d 100644 --- a/pkgs/clan-app/ui/src/workflows/Install/steps/createInstaller.tsx +++ b/pkgs/clan-app/ui/src/workflows/Install/steps/createInstaller.tsx @@ -16,10 +16,7 @@ import { Alert } from "@/src/components/Alert/Alert"; import { LoadingBar } from "@/src/components/LoadingBar/LoadingBar"; import { Button } from "@/src/components/Button/Button"; import Icon from "@/src/components/Icon/Icon"; -import { - useMachineFlashOptions, - useSystemStorageOptions, -} from "@/src/hooks/queries"; +import { useSystemStorageOptions } from "@/src/hooks/queries"; import { useApiClient } from "@/src/hooks/ApiClient"; import { onMount } from "solid-js"; @@ -144,8 +141,6 @@ const ConfigureImage = () => { throw new Error("No data returned from api call"); }; - const optionsQuery = useMachineFlashOptions(); - let content: Node; return ( @@ -309,15 +304,17 @@ const FlashProgress = () => { }); const handleCancel = async () => { - const progress = store.flash.progress; - if (progress) { - await progress.cancel(); + if (store.flash) { + const progress = store.flash.progress; + if (progress) { + await progress.cancel(); + } } stepSignal.previous(); }; return ( -
+
{ const stepSignal = useStepper(); return (
-
+