From d310e24d7c05967ef459cc536de55192f8053bbd Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Fri, 22 Mar 2024 17:26:26 +0200 Subject: [PATCH] minor styling changes and cleanup --- .../configuration-models/auth-providers.model.ts | 1 - .../app/ui/user-profile/user-profile.component.html | 12 ++++++------ .../app/ui/user-profile/user-profile.component.ts | 2 -- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/dmp-frontend/src/app/core/model/configuration-models/auth-providers.model.ts b/dmp-frontend/src/app/core/model/configuration-models/auth-providers.model.ts index 81ff02205..0a292db47 100644 --- a/dmp-frontend/src/app/core/model/configuration-models/auth-providers.model.ts +++ b/dmp-frontend/src/app/core/model/configuration-models/auth-providers.model.ts @@ -34,7 +34,6 @@ export class AuthProviders { } public find(providerName: string, culture: string): AuthProvider | undefined { - return this.authProviders.find(p => p.name === providerName && p.cultures.includes(culture)); } } diff --git a/dmp-frontend/src/app/ui/user-profile/user-profile.component.html b/dmp-frontend/src/app/ui/user-profile/user-profile.component.html index 6bd4b77cf..921eb53b5 100644 --- a/dmp-frontend/src/app/ui/user-profile/user-profile.component.html +++ b/dmp-frontend/src/app/ui/user-profile/user-profile.component.html @@ -47,7 +47,7 @@
{{userCredential.data.email}}
- + @@ -80,7 +80,7 @@
-
+
{{'USER-PROFILE.SETTINGS.ORGANIZATION' | translate}}
@@ -93,7 +93,7 @@
-
+
{{'USER-PROFILE.SETTINGS.ROLE' | translate}}
@@ -123,7 +123,7 @@
-
+
{{'USER-PROFILE.SETTINGS.TIMEZONE' | translate}} *
@@ -142,7 +142,7 @@
-
+
{{'USER-PROFILE.SETTINGS.CULTURE' | translate}} *
@@ -161,7 +161,7 @@
-
+
{{'USER-PROFILE.SETTINGS.LANGUAGE' | translate}} *
diff --git a/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts b/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts index db079be6e..64abf8f93 100644 --- a/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts +++ b/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts @@ -338,8 +338,6 @@ export class UserProfileComponent extends BaseComponent implements OnInit, OnDes }); dialogRef.afterClosed().pipe(takeUntil(this._destroyed)).subscribe(result => { if (result) { - console.log('email result:'); - console.log(result); this.userService.mergeAccount({ email: result.email }) .subscribe(result => { if (result) {