Skip to content

Commit 1ac6cee

Browse files
authored
8652, 8644, 8652 (#1970)
* 8652, 8644, 8652 * Remove duplicated translation * 8619
1 parent d5c0501 commit 1ac6cee

9 files changed

Lines changed: 36 additions & 7 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "ng-orcid",
33
"version": "0.0.0",
44
"scripts": {
5-
"start": "ng serve --disable-host-check --host 0.0.0.0",
6-
"start-qa": "ng serve --configuration=local-qa --host 0.0.0.0",
5+
"start-local": "ng serve --disable-host-check --host 0.0.0.0",
6+
"start": "ng serve --configuration=local-qa --host 0.0.0.0",
77
"start-sandbox": "ng serve --configuration=local-sandbox --host 0.0.0.0",
88
"start:en": "ng serve --configuration=local,en --disable-host-check",
99
"start:fr": "ng serve --configuration=local,fr --disable-host-check",

src/app/cdk/side-bar/modals/modal-country/modal-country.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
<div class="col no-wrap actions-wrapper no-gutters">
146146
<app-visibility-selector
147147
formControlName="visibility"
148-
itemTitle="country.countryName || ''"
148+
[itemTitle]="country.countryName || ''"
149149
></app-visibility-selector>
150150
<button
151151
(click)="deleteCountry(country.putCode)"

src/app/cdk/side-bar/modals/modal-email/modal-email.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ <h2 class="col orc-font-body" i18n="@@side-bar.primaryEmail">
159159
[ariaLabelTrustedParty]="
160160
ariaLabelVisibilityPrimaryEmailTrustedParty
161161
"
162-
[itemTitle]="ariaLabelPrimaryEmail"
162+
[itemTitle]="emailsForm.value[email.putCode].email"
163163
></app-visibility-selector>
164164
<div></div>
165165
</div>

src/app/cdk/side-bar/modals/modal-email/modal-email.component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
.email-input-line {
2323
justify-content: space-between;
24+
align-items: center;
2425
}
2526

2627
mat-form-field {
@@ -57,6 +58,7 @@ mat-form-field {
5758

5859
a {
5960
width: 100%;
61+
max-width: 240px;
6062
}
6163
}
6264

src/app/cdk/side-bar/side-bar/side-bar.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ <h3 header class="orc-font-body" i18n="@@record.keywords">Keywords</h3>
250250
[id]="userInfo?.EFFECTIVE_USER_ORCID"
251251
[userRecord]="userRecord"
252252
>
253-
<h3 header class="orc-font-body" i18n="@@record.countries">Countries</h3>
253+
<h3 header class="orc-font-body" i18n="@@side-bar.countries">Countries</h3>
254254
<app-panel-data *ngIf="userRecord.countries.addresses.length > 0">
255255
<ng-container *ngIf="!isPublicRecord">
256256
<app-panel-element

src/app/cdk/visibility-selector/visibility-selector/visibility-selector.component.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<button
2+
[ngClass]="{
3+
'not-editable': !editable
4+
}"
25
[disabled]="!editable"
36
mat-button
47
[matMenuTriggerFor]="menu"
@@ -31,7 +34,9 @@
3134
>Only me</ng-container
3235
>
3336
</div>
34-
<mat-icon class="arrow-drop-down">arrow_drop_down</mat-icon>
37+
<mat-icon *ngIf="editable" class="arrow-drop-down"
38+
>arrow_drop_down</mat-icon
39+
>
3540
</div>
3641
</button>
3742
<mat-menu #menu="matMenu">

src/app/cdk/visibility-selector/visibility-selector/visibility-selector.component.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
justify-content: center;
1515
margin-inline-end: 16px;
1616
}
17+
1718
[mat-menu-item] {
1819
display: flex;
1920
align-items: center;
@@ -41,10 +42,12 @@
4142
.main-button-container {
4243
display: flex;
4344
align-items: center;
45+
4446
.icon-title-container {
4547
min-width: 100px;
4648
display: flex;
4749
align-items: center;
50+
font-weight: 400;
4851
}
4952
}
5053

@@ -65,3 +68,20 @@ h1 {
6568
padding: 0;
6669
margin-bottom: 4px;
6770
}
71+
72+
73+
:host {
74+
::ng-deep {
75+
.mat-button-disabled {
76+
.icon-title-container {
77+
color: initial;
78+
}
79+
}
80+
81+
82+
}
83+
}
84+
85+
.mat-button-disabled.main-menu {
86+
border: none
87+
}

src/app/cdk/visibility-selector/visibility-selector/visibility-selector.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,21 @@ export class VisibilitySelectorComponent
5757
private() {
5858
this.privacy = 'PRIVATE'
5959
this.visibilityError = false
60+
this.writeValue(this.privacy)
6061
this.onChange(this.privacy)
6162
this.onTouched(this.privacy)
6263
}
6364
limited() {
6465
this.privacy = 'LIMITED'
6566
this.visibilityError = false
67+
this.writeValue(this.privacy)
6668
this.onChange(this.privacy)
6769
this.onTouched(this.privacy)
6870
}
6971
public() {
7072
this.privacy = 'PUBLIC'
7173
this.visibilityError = false
74+
this.writeValue(this.privacy)
7275
this.onChange(this.privacy)
7376
this.onTouched(this.privacy)
7477
}

src/locale/properties/record/record.en.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ record.noPublicInfo=No public information available.
55
record.otherIds=Other IDs
66
record.websitesAndSocialLinks=Websites & social links
77
record.keywords=Keywords
8-
record.countries=Countries
98
record.previewPublicRecord=Preview public record
109
record.ariaLabelpreviewPublicRecord=Preview the public version of this record (Opens in a new tab)
1110
record.closeOtherSources=Close other sources

0 commit comments

Comments
 (0)