From 5ff475046f3c9617dc2a10c72998488890de548f Mon Sep 17 00:00:00 2001 From: Alexandre Vryghem Date: Wed, 6 Nov 2024 14:07:58 +0100 Subject: [PATCH] 119915: Restored functionality to hide the research profile section on the profile page (cherry picked from commit ded0079f24e0f6670f357e545e9ff14219aa4913) --- src/app/profile-page/profile-page.component.html | 2 +- src/app/profile-page/profile-page.component.spec.ts | 6 +++--- src/app/profile-page/profile-page.component.ts | 7 ------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/app/profile-page/profile-page.component.html b/src/app/profile-page/profile-page.component.html index b5703c47a31..3dc7c9d4891 100644 --- a/src/app/profile-page/profile-page.component.html +++ b/src/app/profile-page/profile-page.component.html @@ -1,7 +1,7 @@

{{'profile.title' | translate}}

- +
{{'profile.card.researcher' | translate}}
diff --git a/src/app/profile-page/profile-page.component.spec.ts b/src/app/profile-page/profile-page.component.spec.ts index 810cf63389e..82a0a9d67b9 100644 --- a/src/app/profile-page/profile-page.component.spec.ts +++ b/src/app/profile-page/profile-page.component.spec.ts @@ -369,7 +369,7 @@ describe('ProfilePageComponent', () => { }); it('should return true', () => { - const result = component.isResearcherProfileEnabled(); + const result = component.isResearcherProfileEnabled$; const expected = cold('a', { a: true, }); @@ -385,7 +385,7 @@ describe('ProfilePageComponent', () => { }); it('should return false', () => { - const result = component.isResearcherProfileEnabled(); + const result = component.isResearcherProfileEnabled$; const expected = cold('a', { a: false, }); @@ -401,7 +401,7 @@ describe('ProfilePageComponent', () => { }); it('should return false', () => { - const result = component.isResearcherProfileEnabled(); + const result = component.isResearcherProfileEnabled$; const expected = cold('a', { a: false, }); diff --git a/src/app/profile-page/profile-page.component.ts b/src/app/profile-page/profile-page.component.ts index afa89360b25..75760105e0d 100644 --- a/src/app/profile-page/profile-page.component.ts +++ b/src/app/profile-page/profile-page.component.ts @@ -235,13 +235,6 @@ export class ProfilePageComponent implements OnInit { this.updateProfile(); } - /** - * Returns true if the researcher profile feature is enabled, false otherwise. - */ - isResearcherProfileEnabled(): Observable { - return this.isResearcherProfileEnabled$.asObservable(); - } - /** * Returns an error message from a password validation request with a specific reason or * a default message without specific reason.