AI Implementation feature(842): First-Start Create Admin Modal 1.01 (#4)

This commit was merged in pull request #4.
This commit is contained in:
2026-07-21 15:32:51 +00:00
parent 960516a7bc
commit 6feaf08bdb
17 changed files with 834 additions and 217 deletions
@@ -3,6 +3,7 @@ import {
Component,
HostListener,
computed,
effect,
inject,
signal,
} from '@angular/core';
@@ -32,6 +33,16 @@ export class SetupCreateAdminComponent {
private readonly router = inject(Router);
private readonly bootstrap = inject(BootstrapService);
private readonly alreadyInitialized = computed(() => this.bootstrap.initialized());
constructor() {
effect(() => {
if (this.alreadyInitialized()) {
void this.router.navigateByUrl(this.auth.isAuthenticated() ? '/' : '/login');
}
});
}
readonly policyDescription = computed(() => this.bootstrap.passwordPolicy().description);
readonly form = this.fb.nonNullable.group(