Merge pull request #3810 from alfonso-salces/MOBILE-4242-revert

Revert "MOBILE-4242 profile: Add groups to participants profile"
main
Pau Ferrer Ocaña 2023-10-09 13:39:24 +02:00 committed by GitHub
commit e171f9bce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 10 deletions

View File

@ -26,10 +26,6 @@
<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>

View File

@ -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;
}