MOBILE-3592 core: Uncomment user-avatar and dynamic-component
parent
46cec40cfe
commit
90bd583147
|
@ -43,19 +43,15 @@
|
||||||
<h2>{{ 'core.teachers' | translate }}</h2>
|
<h2>{{ 'core.teachers' | translate }}</h2>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item-divider>
|
</ion-item-divider>
|
||||||
<!-- @todo <ion-item class="ion-text-wrap" *ngFor="let contact of course.contacts" core-user-link
|
<ion-item class="ion-text-wrap" *ngFor="let contact of course.contacts" core-user-link [userId]="contact.id"
|
||||||
[userId]="contact.id"
|
[courseId]="isEnrolled ? course.id : null" [attr.aria-label]="'core.viewprofile' | translate">
|
||||||
[courseId]="isEnrolled ? course.id : null"
|
<core-user-avatar [user]="contact" slot="start" [userId]="contact.id"
|
||||||
[attr.aria-label]="'core.viewprofile' | translate">
|
|
||||||
<core-user-avatar
|
|
||||||
[user]="contact" slot="start"
|
|
||||||
[userId]="contact.id"
|
|
||||||
[courseId]="isEnrolled ? course.id : null">
|
[courseId]="isEnrolled ? course.id : null">
|
||||||
</core-user-avatar>
|
</core-user-avatar>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h2>{{contact.fullname}}</h2>
|
<h2>{{contact.fullname}}</h2>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>-->
|
</ion-item>
|
||||||
<ion-item-divider></ion-item-divider>
|
<ion-item-divider></ion-item-divider>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
<ion-refresher-content pullingText="{{ 'core.pulltorefresh' | translate }}"></ion-refresher-content>
|
<ion-refresher-content pullingText="{{ 'core.pulltorefresh' | translate }}"></ion-refresher-content>
|
||||||
</ion-refresher>
|
</ion-refresher>
|
||||||
<core-loading [hideUntil]="loaded">
|
<core-loading [hideUntil]="loaded">
|
||||||
<!-- @todo <ng-container *ngIf="loaded">
|
<ng-container *ngIf="loaded">
|
||||||
<core-dynamic-component [component]="areaComponent" [data]="{items: items}"></core-dynamic-component>
|
<core-dynamic-component [component]="areaComponent" [data]="{items: items}"></core-dynamic-component>
|
||||||
</ng-container>-->
|
</ng-container>
|
||||||
<core-infinite-loading [enabled]="canLoadMore" (action)="loadMore($event)" [error]="loadMoreError">
|
<core-infinite-loading [enabled]="canLoadMore" (action)="loadMore($event)" [error]="loadMoreError">
|
||||||
</core-infinite-loading>
|
</core-infinite-loading>
|
||||||
</core-loading>
|
</core-loading>
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
<core-loading [hideUntil]="userLoaded">
|
<core-loading [hideUntil]="userLoaded">
|
||||||
<ion-list *ngIf="user && !isDeleted && isEnrolled">
|
<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">
|
||||||
<core-user-avatar [user]="user" [userId]="user.id" [linkProfile]="false"
|
<core-user-avatar [user]="user" [userId]="user.id" [linkProfile]="false" [checkOnline]="true">
|
||||||
[checkOnline]="true">
|
|
||||||
<div class="core-icon-foreground">
|
<div class="core-icon-foreground">
|
||||||
<ion-icon *ngIf="canChangeProfilePicture" name="fa-pen" (click)="changeProfilePicture()">
|
<ion-icon *ngIf="canChangeProfilePicture" name="fa-pen" (click)="changeProfilePicture()">
|
||||||
</ion-icon>
|
</ion-icon>
|
||||||
|
|
Loading…
Reference in New Issue