@@ -9,10 +9,11 @@ import { Divider } from 'primeng/divider';
99import { Password } from 'primeng/password' ;
1010
1111import { CommonModule , NgOptimizedImage } from '@angular/common' ;
12- import { Component , OnInit , signal } from '@angular/core' ;
12+ import { Component , inject , OnInit , signal } from '@angular/core' ;
1313import { FormControl , FormGroup , ReactiveFormsModule , Validators } from '@angular/forms' ;
1414import { RouterLink } from '@angular/router' ;
1515
16+ import { NavigationService } from '@osf/core/services' ;
1617import { RegisterUser } from '@osf/features/auth/store' ;
1718import { PasswordInputHintComponent , TextInputComponent } from '@osf/shared/components' ;
1819import { InputLimits } from '@osf/shared/constants' ;
@@ -42,14 +43,15 @@ import { environment } from 'src/environments/environment';
4243 styleUrl : './sign-up.component.scss' ,
4344} )
4445export class SignUpComponent implements OnInit {
46+ private readonly navigateService = inject ( NavigationService ) ;
47+
48+ private readonly actions = createDispatchMap ( { registerUser : RegisterUser } ) ;
49+
4550 signUpForm = new FormGroup < SignUpForm > ( { } as SignUpForm ) ;
4651 passwordRegex : RegExp = PASSWORD_REGEX ;
4752 inputLimits = InputLimits ;
48-
4953 isFormSubmitted = signal ( false ) ;
5054
51- actions = createDispatchMap ( { registerUser : RegisterUser } ) ;
52-
5355 readonly siteKey = environment . recaptchaSiteKey ;
5456
5557 get isPasswordError ( ) {
@@ -105,4 +107,12 @@ export class SignUpComponent implements OnInit {
105107 } ,
106108 } ) ;
107109 }
110+
111+ navigateToOrcidSingIn ( ) : void {
112+ this . navigateService . navigateToOrcidSingIn ( ) ;
113+ }
114+
115+ navigateToInstitutionSingIn ( ) : void {
116+ this . navigateService . navigateToInstitutionSignIn ( ) ;
117+ }
108118}
0 commit comments