From f2521bd135253fea826ea697839ae9314a62e825 Mon Sep 17 00:00:00 2001
From: Alfonso Salces
- {{ '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; }