fix: Fix bug where the password reset form doesnt show up when using
All checks were successful
CI / Get Changed Files (pull_request) Successful in 38s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 48s
CI / prettier (pull_request) Successful in 46s
CI / eslint (pull_request) Successful in 58s
CI / test-build (pull_request) Successful in 57s
CI / Docker frontend validation (pull_request) Successful in 1m38s
All checks were successful
CI / Get Changed Files (pull_request) Successful in 38s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 48s
CI / prettier (pull_request) Successful in 46s
CI / eslint (pull_request) Successful in 58s
CI / test-build (pull_request) Successful in 57s
CI / Docker frontend validation (pull_request) Successful in 1m38s
center buttons
This commit is contained in:
parent
46c9d2b7c1
commit
ee3a57f5b3
2 changed files with 25 additions and 3 deletions
|
@ -11,11 +11,12 @@ import { ActivatedRoute, RouterLink } from '@angular/router';
|
|||
import { AuthService } from '@service/auth.service';
|
||||
import { LoginComponent } from '../auth/login/login.component';
|
||||
import { RegisterComponent } from '../auth/register/register.component';
|
||||
import { RecoverPasswordComponent } from '../auth/recover-password/recover-password.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-landing-page',
|
||||
standalone: true,
|
||||
imports: [NgFor, RouterLink, LoginComponent, RegisterComponent],
|
||||
imports: [NgFor, RouterLink, LoginComponent, RegisterComponent, RecoverPasswordComponent],
|
||||
templateUrl: './landing.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
|
@ -26,6 +27,7 @@ export class LandingComponent implements OnInit, OnDestroy {
|
|||
route: ActivatedRoute = inject(ActivatedRoute);
|
||||
showLogin = signal(false);
|
||||
showRegister = signal(false);
|
||||
showRecoverPassword = signal(false);
|
||||
|
||||
ngOnInit() {
|
||||
this.startAutoplay();
|
||||
|
@ -43,18 +45,28 @@ export class LandingComponent implements OnInit, OnDestroy {
|
|||
showLoginForm() {
|
||||
this.showLogin.set(true);
|
||||
this.showRegister.set(false);
|
||||
this.showRecoverPassword.set(false);
|
||||
document.body.style.overflow = 'hidden';
|
||||
}
|
||||
|
||||
showRegisterForm() {
|
||||
this.showRegister.set(true);
|
||||
this.showLogin.set(false);
|
||||
this.showRecoverPassword.set(false);
|
||||
document.body.style.overflow = 'hidden';
|
||||
}
|
||||
|
||||
showRecoverPasswordForm() {
|
||||
this.showRecoverPassword.set(true);
|
||||
this.showLogin.set(false);
|
||||
this.showRegister.set(false);
|
||||
document.body.style.overflow = 'hidden';
|
||||
}
|
||||
|
||||
hideAuthForms() {
|
||||
this.showLogin.set(false);
|
||||
this.showRegister.set(false);
|
||||
this.showRecoverPassword.set(false);
|
||||
document.body.style.overflow = 'auto';
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue