Skip to content

Commit

Permalink
Revert "MOBILE-4242 profile: Add groups to participants profile"
Browse files Browse the repository at this point in the history
This reverts commit e4081e6.
  • Loading branch information
alfonso-salces committed Oct 9, 2023
1 parent ec7a3ea commit c189bf5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/core/features/user/pages/profile/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ <h1>{{ user.fullname }}</h1>
<strong>{{ 'core.user.roles' | translate}}</strong>{{'core.labelsep' | translate}}
{{ rolesFormatted }}
</p>
<p *ngIf="userGroups">
<strong>{{ 'core.group' | translate}}</strong>{{'core.labelsep' | translate}}
{{ userGroups }}
</p>
<p *ngIf="user.lastaccess !== undefined">
<strong>{{ 'core.lastaccess' | translate }}: </strong>
<span *ngIf="user.lastaccess">{{ user.lastaccess | coreTimeAgo }}</span>
Expand Down
6 changes: 0 additions & 6 deletions src/core/features/user/pages/profile/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit c189bf5

Please sign in to comment.