mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
chore: refactor install and setup wizards (#2561)
* chore: refactor install and setup wizards * chore: return tui-root
This commit is contained in:
20
web/projects/setup-wizard/src/app/pages/loading.page.ts
Normal file
20
web/projects/setup-wizard/src/app/pages/loading.page.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ChangeDetectionStrategy, Component, inject } from '@angular/core'
|
||||
import { Router } from '@angular/router'
|
||||
import { InitializingComponent } from '@start9labs/shared'
|
||||
import { StateService } from 'src/app/services/state.service'
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
template: `
|
||||
<app-initializing
|
||||
[setupType]="stateService.setupType"
|
||||
(finished)="router.navigate(['success'])"
|
||||
/>
|
||||
`,
|
||||
imports: [InitializingComponent],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export default class LoadingPage {
|
||||
readonly stateService = inject(StateService)
|
||||
readonly router = inject(Router)
|
||||
}
|
||||
Reference in New Issue
Block a user