UI/install: add loading to button

This commit is contained in:
Johannes Kirschbauer
2025-08-13 14:15:52 +02:00
parent 176b54e29d
commit 10065a7c8f

View File

@@ -198,22 +198,14 @@ const CheckHardware = () => {
hierarchy="secondary" hierarchy="secondary"
startIcon="Report" startIcon="Report"
onClick={handleUpdateSummary} onClick={handleUpdateSummary}
class="flex gap-3"
loading={hardwareQuery.isFetching}
> >
Update hardware report Update hardware report
</Button> </Button>
</Orienter> </Orienter>
<Divider orientation="horizontal" /> <Divider orientation="horizontal" />
<Show when={hardwareQuery.isLoading}>
<Typography
hierarchy="label"
size="s"
color="secondary"
class="flex gap-4 w-full justify-end items-center"
>
<Loader />
Loading
</Typography>
</Show>
<Show when={hardwareQuery.data}> <Show when={hardwareQuery.data}>
{(d) => ( {(d) => (
<Alert <Alert
@@ -593,13 +585,16 @@ const InstallSummary = () => {
<StepLayout <StepLayout
body={ body={
<div class="flex flex-col gap-4"> <div class="flex flex-col gap-4">
<Fieldset legend="Address Configuration"> <Fieldset legend="Machine">
<Orienter orientation="horizontal"> <Orienter orientation="horizontal">
{/* TOOD: Display the values emited from previous steps */} <Display label="Name" value={store.install.machineName} />
<Display label="Target" value="flash-installer.local" /> </Orienter>
<Divider orientation="horizontal" />
<Orienter orientation="horizontal">
<Display label="Address" value={store.install.targetHost} />
</Orienter> </Orienter>
</Fieldset> </Fieldset>
<Fieldset legend="Disk Configuration"> <Fieldset legend="Disk">
<Orienter orientation="horizontal"> <Orienter orientation="horizontal">
<Display label="Disk Schema" value="Single" /> <Display label="Disk Schema" value="Single" />
</Orienter> </Orienter>