MOBILE-3782 course: Change 'Download course' text after download

main
Dani Palou 2021-07-26 11:08:15 +02:00
parent 1512ab72ed
commit 2b1ab6fdde
1 changed files with 4 additions and 1 deletions

View File

@ -113,7 +113,10 @@
</ion-icon>
<ion-spinner *ngIf="prefetchCourseData.loading" slot="start"
[attr.aria-label]="'core.loading' | translate"></ion-spinner>
<ion-label><h2>{{ 'core.course.downloadcourse' | translate }}</h2></ion-label>
<ion-label>
<h2 *ngIf="prefetchCourseData.status != statusDownloaded">{{ 'core.course.downloadcourse' | translate }}</h2>
<h2 *ngIf="prefetchCourseData.status == statusDownloaded">{{ 'core.course.refreshcourse' | translate }}</h2>
</ion-label>
</ion-item>
<ion-item button (click)="openCourse()" [attr.aria-label]="course.fullname" *ngIf="!avoidOpenCourse && canAccessCourse"
detail="true">