From f2521bd135253fea826ea697839ae9314a62e825 Mon Sep 17 00:00:00 2001 From: Alfonso Salces Date: Mon, 9 Oct 2023 11:21:48 +0200 Subject: [PATCH] MOBILE-4242: revert This reverts commit e4081e6c1a949376096eccaee4b63b2b0c90f767. --- src/core/features/user/pages/profile/profile.html | 4 ---- src/core/features/user/pages/profile/profile.ts | 6 ------ 2 files changed, 10 deletions(-) diff --git a/src/core/features/user/pages/profile/profile.html b/src/core/features/user/pages/profile/profile.html index c3c8192d3..b8be19e55 100644 --- a/src/core/features/user/pages/profile/profile.html +++ b/src/core/features/user/pages/profile/profile.html @@ -26,10 +26,6 @@ {{ 'core.user.roles' | translate}}{{'core.labelsep' | translate}} {{ rolesFormatted }}

-

- {{ 'core.group' | translate}}{{'core.labelsep' | translate}} - {{ userGroups }} -

{{ 'core.lastaccess' | translate }}: {{ user.lastaccess | coreTimeAgo }} diff --git a/src/core/features/user/pages/profile/profile.ts b/src/core/features/user/pages/profile/profile.ts index 103306b53..dd299b24f 100644 --- a/src/core/features/user/pages/profile/profile.ts +++ b/src/core/features/user/pages/profile/profile.ts @@ -53,7 +53,6 @@ export class CoreUserProfilePage implements OnInit, OnDestroy { protected subscription?: Subscription; protected logView: (user: CoreUserProfile) => void; - userGroups?: string; userLoaded = false; isLoadingHandlers = false; user?: CoreUserProfile; @@ -133,11 +132,6 @@ export class CoreUserProfilePage implements OnInit, OnDestroy { try { await this.fetchUser(); - - if (this.courseId && this.user && 'groups' in this.user) { - const separator = Translate.instant('core.listsep'); - this.userGroups = this.user.groups?.map(group => group.name).join(separator + ' '); - } } finally { this.userLoaded = true; }