From 6cc516536fca0d959930cac3c90fb744ef092c5e Mon Sep 17 00:00:00 2001 From: amontenegro Date: Tue, 13 Feb 2024 22:23:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20GITHUB=20ACTIONS=20format=5Fpret?= =?UTF-8?q?tier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/cdk/side-bar/side-bar/side-bar.component.ts | 4 +++- .../components/record-header/record-header.component.html | 7 +++++-- .../components/record-info/record-info.component.html | 4 ++-- .../record/components/record-info/record-info.component.ts | 5 ++++- src/app/shared/utils/record.util.ts | 5 ++++- 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/app/cdk/side-bar/side-bar/side-bar.component.ts b/src/app/cdk/side-bar/side-bar/side-bar.component.ts index 55add42620..a80b625d11 100644 --- a/src/app/cdk/side-bar/side-bar/side-bar.component.ts +++ b/src/app/cdk/side-bar/side-bar/side-bar.component.ts @@ -152,7 +152,9 @@ export class SideBarComponent implements OnInit, OnDestroy { } onSideBarElementsDisplay(userRecord: UserRecord): void { - this.isSideBarEmpty.emit(RecordUtil.isSideBarEmpty(!!this.isPublicRecord, userRecord)) + this.isSideBarEmpty.emit( + RecordUtil.isSideBarEmpty(!!this.isPublicRecord, userRecord) + ) } ngOnDestroy() { diff --git a/src/app/record/components/record-header/record-header.component.html b/src/app/record/components/record-header/record-header.component.html index 52a22d44de..3a4de2fe71 100644 --- a/src/app/record/components/record-header/record-header.component.html +++ b/src/app/record/components/record-header/record-header.component.html @@ -8,7 +8,10 @@

This record is locked diff --git a/src/app/record/components/record-info/record-info.component.html b/src/app/record/components/record-info/record-info.component.html index a365586b27..6db0ea80a9 100644 --- a/src/app/record/components/record-info/record-info.component.html +++ b/src/app/record/components/record-info/record-info.component.html @@ -1,12 +1,12 @@

diff --git a/src/app/record/components/record-info/record-info.component.ts b/src/app/record/components/record-info/record-info.component.ts index 2afe992f25..7d8bdc9933 100644 --- a/src/app/record/components/record-info/record-info.component.ts +++ b/src/app/record/components/record-info/record-info.component.ts @@ -36,7 +36,10 @@ export class RecordInfoComponent implements OnInit { this.affiliations ) - this.displaySideBar = RecordUtil.isSideBarEmpty(!!this.isPublicRecord, userRecord) + this.displaySideBar = RecordUtil.isSideBarEmpty( + !!this.isPublicRecord, + userRecord + ) this.displayBiography = !!userRecord?.biography }) } diff --git a/src/app/shared/utils/record.util.ts b/src/app/shared/utils/record.util.ts index a2793e13e0..67b6e6b73c 100644 --- a/src/app/shared/utils/record.util.ts +++ b/src/app/shared/utils/record.util.ts @@ -73,7 +73,10 @@ export class RecordUtil { .join('; ') } - static isSideBarEmpty(isPublicRecord: boolean, userRecord: UserRecord): boolean { + static isSideBarEmpty( + isPublicRecord: boolean, + userRecord: UserRecord + ): boolean { if ( (userRecord?.emails?.emails && (!isPublicRecord || userRecord.emails.emails.length > 0)) ||