install: add progress to ui
This commit is contained in:
@@ -545,7 +545,14 @@ const InstallSummary = () => {
|
||||
);
|
||||
};
|
||||
|
||||
type InstallTopic = "generators" | "upload-secrets" | "nixos-anywhere";
|
||||
type InstallTopic = [
|
||||
"generators",
|
||||
"upload-secrets",
|
||||
"nixos-anywhere",
|
||||
"formatting",
|
||||
"rebooting",
|
||||
"installing",
|
||||
][number];
|
||||
|
||||
const InstallProgress = () => {
|
||||
const stepSignal = useStepper<InstallSteps>();
|
||||
@@ -599,6 +606,15 @@ const InstallProgress = () => {
|
||||
<Match when={installState()?.topic === "nixos-anywhere"}>
|
||||
Running nixos-anywhere ...
|
||||
</Match>
|
||||
<Match when={installState()?.topic === "formatting"}>
|
||||
Formatting ...
|
||||
</Match>
|
||||
<Match when={installState()?.topic === "installing"}>
|
||||
Installing ...
|
||||
</Match>
|
||||
<Match when={installState()?.topic === "rebooting"}>
|
||||
Rebooting ...
|
||||
</Match>
|
||||
</Switch>
|
||||
</Match>
|
||||
</Switch>
|
||||
|
||||
Reference in New Issue
Block a user