Skip to content

Commit

Permalink
🤖 GITHUB ACTIONS format_prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Apr 3, 2024
1 parent 69d6ce9 commit 213ec05
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ mat-card-content.authorize-content {
:first-child {
margin-bottom: 12px;
}
}
}
9 changes: 2 additions & 7 deletions src/app/cdk/side-bar/side-bar/side-bar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,15 @@
<h2
class="orc-font-body-large"
[ngClass]="{
'sr-only':
!loadingUserRecord && isPublicRecord ? false : true
'sr-only': !loadingUserRecord && isPublicRecord ? false : true
}"
i18n="@@shared.personalInformation"
>
Personal information
</h2>
<p
i18n="@@record.noPersonalInformation"
*ngIf="
!loadingUserRecord && isPublicRecord
? !displaySideBar
: false
"
*ngIf="!loadingUserRecord && isPublicRecord ? !displaySideBar : false"
>
No personal information available
</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<section
[id]="'status-bar'"
role="region"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ng-container *ngFor="let activity of activitiesToDisplay; last as isLast">
<div
class="activity-container"
(click)="goToUrl(activity.url)"
(click)="goToUrl(activity.url)"
[ngClass]="{
'with-border': !isLast || acitivityCountOverflow,
'padding-botton': !isLast || acitivityCountOverflow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export class SummaryPanelComponent implements OnInit {
this._window.open(url, '_blank')
}
goToActivitySection(activitySection: string) {
this.standaloneMode ? this.goToUrl(this.url) : this.scrollTo(activitySection)
this.standaloneMode
? this.goToUrl(this.url)
: this.scrollTo(activitySection)
}
scrollTo(activitySection: string) {
document.querySelector(`#${activitySection}`).scrollIntoView()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,17 @@ export class TrustedSummaryComponent implements OnInit, OnDestroy {
return offsettedDate
}
goToActivitySection(activitySection: string) {
this.standaloneMode ? this.navigateTo(activitySection) : this.scrollTo(activitySection)
this.standaloneMode
? this.navigateTo(activitySection)
: this.scrollTo(activitySection)
}
scrollTo(activitySection: string) {
document.querySelector(`#${activitySection}`).scrollIntoView()
}
navigateTo(activitySection: string) {
this._window.open(`${this.trustedSummary.orcid}#${activitySection}`, '_blank')
this._window.open(
`${this.trustedSummary.orcid}#${activitySection}`,
'_blank'
)
}
}
1 change: 0 additions & 1 deletion src/app/record/pages/my-orcid/my-orcid.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ describe('MyOrcidComponent', () => {
}
})


it('[PRIVATE] should have only one of each section', () => {
validateTopBarAndActivities(fixture, 1)
})
Expand Down
1 change: 0 additions & 1 deletion src/app/record/pages/my-orcid/my-orcid.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ export class MyOrcidComponent implements OnInit, OnDestroy {
}
}


if (togglz.messages['CRAZY_EGG'] === 'true') {
this._scriptService
.load({
Expand Down

0 comments on commit 213ec05

Please sign in to comment.