AI Implementation feature(892): Admin Area General Settings and Categories 1.10 (#32)

This commit was merged in pull request #32.
This commit is contained in:
2026-07-22 16:16:22 +00:00
parent 4656a5b082
commit c0a01eb58e
17 changed files with 664 additions and 63 deletions
@@ -69,6 +69,7 @@ export class LandingComponent implements OnInit {
ngOnInit(): void {
void this.landing.refresh();
void this.bootstrap.refresh();
}
openLogin(): void {
@@ -43,4 +43,14 @@ export function buildLoginFailureMessage(input: FailureMessageInput): FailureMes
default:
return { text: input.message || 'Something went wrong. Please try again.' };
}
}
/**
* Pure predicate that mirrors `landing.component.html`'s `@if (registrationsEnabled())`
* guard around the "Register here" / "Login here" switch button. Keeping it here
* lets the test suite lock in the contract "the modal exposes a Register control
* iff the bootstrap payload says the API will accept a registration."
*/
export function landingModalShowsRegister(registrationsEnabled: unknown): boolean {
return registrationsEnabled === true;
}