11< app-settings-panels-data >
2+ @if (success) {
3+ < app-alert-message type ="success " class ="mb-4.5 ">
4+ < h4 title i18n > Duplicate account removed</ h4 >
5+ < p
6+ content
7+ class ="mt-0.5 "
8+ i18n ="
9+ successful deprecation message|orcidToDeprecate=accound id that was
10+ deprecated
11+ "
12+ >
13+ < span > The record</ span > < strong > {{ orcidToDeprecate }}</ strong
14+ > < span > has been deprecated.</ span >
15+ </ p >
16+ </ app-alert-message >
17+ } @if (cancelAuthentication) {
18+ < app-alert-message type ="warning " class ="mb-4.5 ">
19+ < h4 title i18n > Duplicate account not removed</ h4 >
20+ < p content class ="mt-0.5 " i18n >
21+ We could not verify your ORCID account details. The duplicate record has
22+ not been deprecated.
23+ </ p >
24+ </ app-alert-message >
25+ }
226 < p i18n ="@@account.ifYouHaveTwoorMore " class ="mb-0 leading-5.25 ">
327 If you have two or more ORCID records you can easily remove any unwanted
428 duplicates.
1640 </ p >
1741
1842 < app-alert-message class ="row mb-8 ">
19- < h3 title i18n > What happens when you remove a duplicate ORCID account?</ h3 >
43+ < h4 title i18n > What happens when you remove a duplicate ORCID account?</ h4 >
2044
2145 < ul content i18n >
22- < li class ="list-disc ">
46+ < li class ="list-disc! ">
2347 The email addresses are transferred from the duplicate account to
2448 < strong > {{ orcid }}</ strong >
2549 </ li >
26- < li class ="list-disc ">
50+ < li class ="list-disc! ">
2751 All information on the duplicate account is permanently deleted
2852 </ li >
2953 </ ul >
3054 </ app-alert-message >
3155 @if (authenticated) {
3256 < form [formGroup] ="form " (ngSubmit) ="onSubmit() ">
33- < ng-container *ngIf ="data.deprecatingAccountName ">
34- < strong
35- > {{ data.deprecatingAccountName }}
36- < a
37- id ="cy-deprecating-orcid "
38- class ="underline "
39- routerLink ="/ "
40- +
41- data.deprecatingOrcid
42- rel ="noopener noreferrer "
43- target ="_blank "
44- > ({{ data.deprecatingOrcid }})</ a
45- > </ strong
46- >
47- </ ng-container >
48- < ng-container *ngIf ="!data.deprecatingAccountName ">
49- < strong
50- > < ng-container i18n ="@@account.nameIsPri "> Name is private</ ng-container >
51- < a
52- id ="cy-deprecating-orcid "
53- class ="underline "
54- routerLink ="/ "
55- +
56- data.deprecatingOrcid
57- rel ="noopener noreferrer "
58- target ="_blank "
59- > {{ data.deprecatingOrcid }}</ a
60- > </ strong
61- >
62- </ ng-container >
63- < div *ngFor ="let email of data.deprecatingEmails "> {{ email }}</ div >
64-
65- < h2 class ="keep ">
66- < strong class ="orc-font-body-large " i18n ="@@account.keepThisRecord "
67- > Keep this record</ strong
68- >
69- </ h2 >
70-
71- < ng-container *ngIf ="data.primaryAccountName ">
72- < strong
73- > {{ data.primaryAccountName }}
74- < a
75- id ="cy-primary-orcid "
76- class ="underline "
77- routerLink ="/ "
78- +
79- data.primaryOrcid
80- rel ="noopener noreferrer "
81- target ="_blank "
82- > ({{ data.primaryOrcid }})</ a
83- > </ strong
84- >
85- </ ng-container >
86- < ng-container *ngIf ="!data.primaryAccountName ">
87- < strong >
88- < a
89- id ="cy-primary-orcid "
90- class ="underline "
91- routerLink ="/ "
92- +
93- data.primaryOrcid
94- rel ="noopener noreferrer "
95- target ="_blank "
96- > {{ data.primaryOrcid }}</ a
97- > </ strong
98- >
99- </ ng-container >
100- < div *ngFor ="let email of data.primaryEmails "> {{ email }}</ div >
57+ < h3 i18n class ="mb-2 mt-0 "> You are removing this duplicate account</ h3 >
58+ @if (data.deprecatingAccountName) {
59+ < p class ="leading-5.25 "> {{ data.deprecatingAccountName }}</ p >
60+ } @else {
61+ < p class ="leading-5.25 " i18n ="@@account.nameIsPri "> Name is private</ p >
62+ }
63+ < p class ="mb-6! leading-5.25 ">
64+ https:{{ baseUrl + data.deprecatingOrcid }}
65+ </ p >
10166
67+ < strong i18n class ="leading-5.25 "
68+ > Email addresses to be transferred to this account</ strong
69+ > < strong > ({{ orcid }})</ strong >
70+ < div class ="mb-6! "> {{ data.deprecatingEmails?.join(', ') }}</ div >
71+ < em class ="block mb-8! " i18n
72+ > All other information on this account will be permanently deleted.</ em
73+ >
10274 < button
10375 mat-raised-button
10476 color ="warn "
105- (click) =" onSubmit() "
106- i18n =" @@account.removeDuplicatedRecord "
77+ type =" submit "
78+ i18n
10779 id ="cy-remove-duplicate-record "
10880 >
109- Remove duplicate record
81+ Remove duplicate account
11082 </ button >
11183 </ form >
11284 } @else {
@@ -129,7 +101,8 @@ <h3 i18n class="mt-0 mb-2">Which account do you want to remove?</h3>
129101 </ label >
130102 < mat-form-field
131103 appearance ="outline "
132- class ="mat-form-field-min input-container "
104+ subscriptSizing ="dynamic "
105+ class ="mat-form-field-min input-container mb-6! "
133106 >
134107 < input
135108 formControlName ="deprecatingOrcidOrEmail "
@@ -152,7 +125,8 @@ <h3 i18n class="mt-0 mb-2">Which account do you want to remove?</h3>
152125 </ label >
153126 < mat-form-field
154127 appearance ="outline "
155- class ="mat-form-field-min input-container mb-8 "
128+ subscriptSizing ="dynamic "
129+ class ="mat-form-field-min input-container mb-8! "
156130 >
157131 < input
158132 formControlName ="password "
@@ -164,14 +138,16 @@ <h3 i18n class="mt-0 mb-2">Which account do you want to remove?</h3>
164138 />
165139 </ mat-form-field >
166140
167- < mat-error *ngFor ="let error of errors "> {{ error }}</ mat-error >
141+ < mat-error class ="mb-4! -mt-2! " *ngFor ="let error of errors "> {{
142+ error
143+ }}</ mat-error >
168144
169145 < div class ="button-container ">
170146 < button
171147 mat-raised-button
172148 i18n
173149 type ="submit "
174- [disabled] ="form.invalid "
150+ [disabled] ="form.invalid || loadingVerify "
175151 class ="cy-remove-duplicated-record "
176152 >
177153 Verify duplicate account details
0 commit comments