parent
ec7a3ea9b4
commit
f2521bd135
|
@ -26,10 +26,6 @@
|
||||||
<strong>{{ 'core.user.roles' | translate}}</strong>{{'core.labelsep' | translate}}
|
<strong>{{ 'core.user.roles' | translate}}</strong>{{'core.labelsep' | translate}}
|
||||||
{{ rolesFormatted }}
|
{{ rolesFormatted }}
|
||||||
</p>
|
</p>
|
||||||
<p *ngIf="userGroups">
|
|
||||||
<strong>{{ 'core.group' | translate}}</strong>{{'core.labelsep' | translate}}
|
|
||||||
{{ userGroups }}
|
|
||||||
</p>
|
|
||||||
<p *ngIf="user.lastaccess !== undefined">
|
<p *ngIf="user.lastaccess !== undefined">
|
||||||
<strong>{{ 'core.lastaccess' | translate }}: </strong>
|
<strong>{{ 'core.lastaccess' | translate }}: </strong>
|
||||||
<span *ngIf="user.lastaccess">{{ user.lastaccess | coreTimeAgo }}</span>
|
<span *ngIf="user.lastaccess">{{ user.lastaccess | coreTimeAgo }}</span>
|
||||||
|
|
|
@ -53,7 +53,6 @@ export class CoreUserProfilePage implements OnInit, OnDestroy {
|
||||||
protected subscription?: Subscription;
|
protected subscription?: Subscription;
|
||||||
protected logView: (user: CoreUserProfile) => void;
|
protected logView: (user: CoreUserProfile) => void;
|
||||||
|
|
||||||
userGroups?: string;
|
|
||||||
userLoaded = false;
|
userLoaded = false;
|
||||||
isLoadingHandlers = false;
|
isLoadingHandlers = false;
|
||||||
user?: CoreUserProfile;
|
user?: CoreUserProfile;
|
||||||
|
@ -133,11 +132,6 @@ export class CoreUserProfilePage implements OnInit, OnDestroy {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.fetchUser();
|
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 {
|
} finally {
|
||||||
this.userLoaded = true;
|
this.userLoaded = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue