MOBILE-3523 courses: Fix course name in manage storage

main
Dani Palou 2020-11-26 09:17:14 +01:00
parent 1a87eb3094
commit 95e2fc2a4d
2 changed files with 8 additions and 2 deletions

View File

@ -7,7 +7,10 @@
<core-loading [hideUntil]="loaded">
<ion-card class="wholecourse">
<ion-card-header>
<h1 text-wrap>{{ course.displayname }}</h1>
<h1 text-wrap>
<span *ngIf="course.displayname">{{ course.displayname }}</span>
<span *ngIf="!course.displayname">{{ course.fullname }}</span>
</h1>
<p text-wrap>{{ 'addon.storagemanager.info' | translate }}</p>
<ion-item no-padding padding-top class="size" text-wrap>
<ion-icon name="cube" item-start></ion-icon>

View File

@ -24,7 +24,10 @@
<ion-card>
<ion-list>
<ion-item *ngFor="let course of downloadedCourses" class="course">
<h2 text-wrap>{{ course.displayname }}</h2>
<h2 text-wrap>
<span *ngIf="course.displayname">{{ course.displayname }}</span>
<span *ngIf="!course.displayname">{{ course.fullname }}</span>
</h2>
<h3 *ngIf="course.isDownloading">{{ 'core.downloading' | translate }}</h3>
<p>
<ion-icon name="cube" item-start></ion-icon>