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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user