File tree Expand file tree Collapse file tree 11 files changed +70
-75
lines changed
locale/properties/register Expand file tree Collapse file tree 11 files changed +70
-75
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ const routes: Routes = [
151
151
matcher : routerReactivation ,
152
152
canActivateChild : [ LanguageGuard , RegisterGuard ] ,
153
153
loadChildren : ( ) =>
154
- import ( './register /register.module' ) . then ( ( m ) => m . RegisterModuleLegacy ) ,
154
+ import ( './register2 /register.module' ) . then ( ( m ) => m . Register2Module ) ,
155
155
} ,
156
156
{
157
157
path : ApplicationRoutes . selfService ,
Original file line number Diff line number Diff line change @@ -114,11 +114,16 @@ <h3 i18n="@@register.yourEmailAddresses" class="orc-font-body margin-top-12">
114
114
appearance ="outline "
115
115
[hideRequiredMarker] ="true "
116
116
[ngClass] ="{
117
- 'valid-password-input': emailsAreValid,
117
+ 'valid-password-input':
118
+ emailsAreValid || this.reactivation?.isReactivation,
118
119
'disable-error': !emailError
119
120
} "
120
121
>
121
- < mat-icon *ngIf ="emailsAreValid " matSuffix > done</ mat-icon >
122
+ < mat-icon
123
+ *ngIf ="emailsAreValid || this.reactivation?.isReactivation "
124
+ matSuffix
125
+ > done</ mat-icon
126
+ >
122
127
123
128
< input
124
129
aria-labelledby ="email-input-input-label "
@@ -234,10 +239,9 @@ <h3 i18n="@@register.yourEmailAddresses" class="orc-font-body margin-top-12">
234
239
<!-- <mat-label i18n="@@register.confirmEmail"
235
240
>Confirm primary email</mat-label
236
241
> -->
237
- < div class ="input-container ">
242
+ < div class ="input-container " *ngIf =" !reactivation?.isReactivation " >
238
243
< mat-form-field
239
244
appearance ="outline "
240
- *ngIf ="!reactivation?.isReactivation "
241
245
[hideRequiredMarker] ="true "
242
246
[ngClass] ="{ 'valid-password-input': emailsAreValid } "
243
247
>
Original file line number Diff line number Diff line change @@ -152,7 +152,9 @@ export class FormPersonalComponent
152
152
{
153
153
email : new UntypedFormControl ( '' , {
154
154
validators : [ Validators . required , OrcidValidators . email ] ,
155
- asyncValidators : this . _register . backendValueValidate ( 'email' ) ,
155
+ asyncValidators :
156
+ ! this . reactivation ?. isReactivation &&
157
+ this . _register . backendValueValidate ( 'email' ) ,
156
158
} ) ,
157
159
additionalEmails : this . additionalEmails ,
158
160
} ,
@@ -320,7 +322,7 @@ export class FormPersonalComponent
320
322
321
323
get emailConfirmationValid ( ) {
322
324
return ( ( this . form . controls . emails as any ) . controls ?. confirmEmail as any )
323
- . valid
325
+ ? .valid
324
326
}
325
327
326
328
get givenNameFormTouched ( ) {
Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ <h1 class="orc-font-heading-small" i18n="@@register.create">
13
13
Create your ORCID iD
14
14
</ h1 >
15
15
</ ng-container >
16
- < ng-container
17
- *ngIf ="reactivation?.isReactivation "
18
- i18n ="@@register.reactivation "
19
- >
20
- Thank you for reactivating your ORCID iD.
16
+ < ng-container *ngIf ="reactivation?.isReactivation ">
17
+ < h1
18
+ class ="orc-font-heading-small "
19
+ i18n ="@@register.reactivateYourOrcidAccount "
20
+ >
21
+ Reactivate your ORCID account
22
+ </ h1 >
21
23
</ ng-container >
22
24
</ mat-card-title >
23
25
< mat-card-subtitle role ="heading " aria-level ="2 ">
@@ -71,7 +73,16 @@ <h2 class="orc-font-body-small" i18n="@@register.step1.3">
71
73
type ="button "
72
74
id ="step-a-back-button "
73
75
>
74
- < a i18n ="@@register.cancelRegistration "> Cancel registration</ a >
76
+ < a
77
+ i18n ="@@register.cancelRegistration "
78
+ *ngIf ="!reactivation?.isReactivation "
79
+ > Cancel registration</ a
80
+ >
81
+ < a
82
+ i18n ="@@register.cancelReactivation "
83
+ *ngIf ="reactivation?.isReactivation "
84
+ > Cancel reactivation</ a
85
+ >
75
86
</ button >
76
87
</ div >
77
88
</ form >
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class StepAComponent
79
79
ngAfterViewInit ( ) : void {
80
80
// Timeout used to get focus on the first input after the first step loads
81
81
setTimeout ( ( ) => {
82
- this . firstInput . nativeElement . focus ( )
82
+ this . firstInput ? .nativeElement . focus ( )
83
83
} ) ,
84
84
100
85
85
}
Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ <h1 class="orc-font-heading-small" i18n="@@register.create">
13
13
Create your ORCID iD
14
14
</ h1 >
15
15
</ ng-container >
16
- < ng-container
17
- *ngIf ="reactivation?.isReactivation "
18
- i18n ="@@register.reactivation "
19
- >
20
- Thank you for reactivating your ORCID iD.
16
+ < ng-container *ngIf ="reactivation?.isReactivation ">
17
+ < h1
18
+ class ="orc-font-heading-small "
19
+ i18n ="@@register.reactivateYourOrcidAccount "
20
+ >
21
+ Reactivate your ORCID account
22
+ </ h1 >
21
23
</ ng-container >
22
24
</ mat-card-title >
23
25
< mat-card-subtitle role ="heading " aria-level ="2 ">
@@ -41,18 +43,7 @@ <h2 class="orc-font-body-small" i18n="@@register.step2.3">
41
43
matStepperNext
42
44
(click) ="nextButton2() "
43
45
>
44
- < ng-container
45
- *ngIf ="!reactivation?.isReactivation "
46
- i18n ="@@register.nextStep "
47
- >
48
- Next Step
49
- </ ng-container >
50
- < ng-container
51
- *ngIf ="reactivation?.isReactivation "
52
- i18n ="@@register.reactivate "
53
- >
54
- REACTIVATE
55
- </ ng-container >
46
+ < ng-container i18n ="@@register.nextStep "> Next Step </ ng-container >
56
47
</ button >
57
48
< button
58
49
mat-button
Original file line number Diff line number Diff line change @@ -19,11 +19,13 @@ <h1 class="orc-font-heading-small" i18n="@@register.create">
19
19
Create your ORCID iD
20
20
</ h1 >
21
21
</ ng-container >
22
- < ng-container
23
- *ngIf ="reactivation?.isReactivation "
24
- i18n ="@@register.reactivation "
25
- >
26
- Thank you for reactivating your ORCID iD.
22
+ < ng-container *ngIf ="reactivation?.isReactivation ">
23
+ < h1
24
+ class ="orc-font-heading-small "
25
+ i18n ="@@register.reactivateYourOrcidAccount "
26
+ >
27
+ Reactivate your ORCID account
28
+ </ h1 >
27
29
</ ng-container >
28
30
</ mat-card-title >
29
31
< mat-card-subtitle role ="heading " aria-level ="2 ">
@@ -47,18 +49,7 @@ <h2 class="orc-font-body-small" i18n="@@register.step4.3">
47
49
matStepperNext
48
50
(click) ="nextButton2() "
49
51
>
50
- < ng-container
51
- *ngIf ="!reactivation?.isReactivation "
52
- i18n ="@@register.nextStep "
53
- >
54
- Next Step
55
- </ ng-container >
56
- < ng-container
57
- *ngIf ="reactivation?.isReactivation "
58
- i18n ="@@register.reactivate "
59
- >
60
- REACTIVATE
61
- </ ng-container >
52
+ < ng-container i18n ="@@register.nextStep "> Next Step </ ng-container >
62
53
</ button >
63
54
< button
64
55
mat-button
Original file line number Diff line number Diff line change @@ -19,11 +19,13 @@ <h1 class="orc-font-heading-small" i18n="@@register.create">
19
19
Create your ORCID iD
20
20
</ h1 >
21
21
</ ng-container >
22
- < ng-container
23
- *ngIf ="reactivation?.isReactivation "
24
- i18n ="@@register.reactivation "
25
- >
26
- Thank you for reactivating your ORCID iD.
22
+ < ng-container *ngIf ="reactivation?.isReactivation ">
23
+ < h1
24
+ class ="orc-font-heading-small "
25
+ i18n ="@@register.reactivateYourOrcidAccount "
26
+ >
27
+ Reactivate your ORCID account
28
+ </ h1 >
27
29
</ ng-container >
28
30
</ mat-card-title >
29
31
< mat-card-subtitle role ="heading " aria-level ="2 ">
@@ -51,18 +53,7 @@ <h2 class="orc-font-body-small" i18n="@@register.step3.3">
51
53
[disabled] ="loading "
52
54
(click) ="nextButton2() "
53
55
>
54
- < ng-container
55
- *ngIf ="!reactivation?.isReactivation "
56
- i18n ="@@register.nextStep "
57
- >
58
- Next Step
59
- </ ng-container >
60
- < ng-container
61
- *ngIf ="reactivation?.isReactivation "
62
- i18n ="@@register.reactivate "
63
- >
64
- REACTIVATE
65
- </ ng-container >
56
+ < ng-container i18n ="@@register.nextStep "> Next Step </ ng-container >
66
57
</ button >
67
58
< button
68
59
mat-button
Original file line number Diff line number Diff line change @@ -19,11 +19,13 @@ <h1 class="orc-font-heading-small" i18n="@@register.create">
19
19
Create your ORCID iD
20
20
</ h1 >
21
21
</ ng-container >
22
- < ng-container
23
- *ngIf ="reactivation?.isReactivation "
24
- i18n ="@@register.reactivation "
25
- >
26
- Thank you for reactivating your ORCID iD.
22
+ < ng-container *ngIf ="reactivation?.isReactivation ">
23
+ < h1
24
+ class ="orc-font-heading-small "
25
+ i18n ="@@register.reactivateYourOrcidAccount "
26
+ >
27
+ Reactivate your ORCID account
28
+ </ h1 >
27
29
</ ng-container >
28
30
</ mat-card-title >
29
31
< mat-card-subtitle role ="heading " aria-level ="2 ">
@@ -57,9 +59,9 @@ <h2 class="orc-font-body-small" i18n="@@register.step5.3">
57
59
</ ng-container >
58
60
< ng-container
59
61
*ngIf ="reactivation?.isReactivation "
60
- i18n ="@@register.reactivate "
62
+ i18n ="@@register.reactivateMyOrcidAccount "
61
63
>
62
- REACTIVATE
64
+ Reactivate my ORCID account
63
65
</ ng-container >
64
66
</ button >
65
67
< button
@@ -70,7 +72,7 @@ <h2 class="orc-font-body-small" i18n="@@register.step5.3">
70
72
id ="step-d-back-button "
71
73
(click) ="backButton() "
72
74
>
73
- < a i18n ="@@shared.previousStep "> Previous Step</ a >
75
+ < a i18n ="@@shared.previousStep "> Previous Step</ a >
74
76
</ button >
75
77
</ div >
76
78
</ form >
Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ export class RegisterObservabilityService {
52
52
emailError : ( form . controls . emails as UntypedFormGroup ) . controls . email
53
53
. errors ,
54
54
confirmEmailError : ( form . controls . emails as UntypedFormGroup ) . controls
55
- . confirmEmail . errors ,
55
+ . confirmEmail ? .errors ,
56
56
additionalEmailsError : ( form . controls . emails as UntypedFormGroup )
57
- . controls . additionalEmails . errors ,
57
+ . controls . additionalEmails ? .errors ,
58
58
} ,
59
59
}
60
60
)
Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ register.reactivating=Reactivating your account
103
103
register.resendReactivate=click here to reactivate
104
104
register.deactivated=A deactivated ORCID record is associated with this email address.
105
105
register.reactivation=Thank you for reactivating your ORCID iD.
106
+ register.reactivateYourOrcidAccount=Reactivate your ORCID account
107
+ register.reactivateMyOrcidAccount=Reactivate my ORCID account
106
108
register.reactivate=REACTIVATE
107
109
register.passwordIsToLong=Passwords must be between 8 and 256 characters long
108
110
register.wrongPasswordPatternV2=Password must meet all requirements
@@ -166,6 +168,7 @@ register.step3.3=Step 3 of 5 - Current employment
166
168
register.step5.3=Step 5 of 5 - Terms and conditions
167
169
register.nextStep=Next Step
168
170
register.cancelRegistration=Cancel registration
171
+ register.cancelReactivation=Cancel reactivation
169
172
register.previousStep=Previous Step
170
173
register.completeRegistration=Complete registration
171
174
register.passwordRequired2=Please enter a password
You can’t perform that action at this time.
0 commit comments