MOBILE-3833 user: Quick fixes on user profile
parent
0037a66349
commit
fbf7b38bea
|
@ -14,7 +14,7 @@
|
|||
</ion-refresher>
|
||||
<core-loading [hideUntil]="userLoaded">
|
||||
<ion-list *ngIf="user">
|
||||
<ion-item class="ion-text-center core-user-profile-maininfo" lines="full">
|
||||
<ion-item class="ion-text-center core-user-profile-maininfo ion-text-wrap" lines="full">
|
||||
<core-user-avatar [user]="user" [userId]="user.id" [linkProfile]="false" [checkOnline]="true">
|
||||
<ion-button class="edit-avatar" *ngIf="canChangeProfilePicture" (click)="changeProfilePicture()"
|
||||
[attr.aria-label]="'core.user.newpicture' | translate" fill="clear" color="dark">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<ion-back-button [text]="'core.back' | translate"></ion-back-button>
|
||||
</ion-buttons>
|
||||
<ion-title>
|
||||
<h1 *ngIf="title">{{ title }}</h1>
|
||||
<h1>{{ user?.fullname }}</h1>
|
||||
</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
@ -15,7 +15,7 @@
|
|||
</ion-refresher>
|
||||
<core-loading [hideUntil]="userLoaded">
|
||||
<ion-list *ngIf="user && !isDeleted && isEnrolled">
|
||||
<ion-item class="ion-text-center core-user-profile-maininfo">
|
||||
<ion-item class="ion-text-center core-user-profile-maininfo ion-text-wrap">
|
||||
<core-user-avatar [user]="user" [userId]="user.id" [linkProfile]="false" [checkOnline]="true">
|
||||
</core-user-avatar>
|
||||
<ion-label>
|
||||
|
@ -23,7 +23,7 @@
|
|||
<p *ngIf="user.address">
|
||||
<ion-icon name="fas-map-marker-alt" [attr.aria-hidden]="true"></ion-icon> {{ user.address }}
|
||||
</p>
|
||||
<p *ngIf="rolesFormatted" class="ion-text-wrap">
|
||||
<p *ngIf="rolesFormatted">
|
||||
<strong>{{ 'core.user.roles' | translate}}</strong>{{'core.labelsep' | translate}}
|
||||
{{ rolesFormatted }}
|
||||
</p>
|
||||
|
|
|
@ -47,7 +47,6 @@ export class CoreUserProfilePage implements OnInit, OnDestroy {
|
|||
userLoaded = false;
|
||||
isLoadingHandlers = false;
|
||||
user?: CoreUserProfile;
|
||||
title?: string;
|
||||
isDeleted = false;
|
||||
isEnrolled = true;
|
||||
rolesFormatted?: string;
|
||||
|
@ -128,7 +127,6 @@ export class CoreUserProfilePage implements OnInit, OnDestroy {
|
|||
this.rolesFormatted = 'roles' in user ? CoreUserHelper.formatRoleList(user.roles) : '';
|
||||
|
||||
this.user = user;
|
||||
this.title = user.fullname;
|
||||
|
||||
// If there's already a subscription, unsubscribe because we'll get a new one.
|
||||
this.subscription?.unsubscribe();
|
||||
|
|
Loading…
Reference in New Issue