MOBILE-2720 course: Hide progressbar with one section selected

main
Pau Ferrer Ocaña 2018-11-09 12:46:30 +01:00
parent 9e95285f62
commit 85e134ccac
1 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,8 @@
<core-dynamic-component [component]="courseFormatComponent" [data]="data"> <core-dynamic-component [component]="courseFormatComponent" [data]="data">
<!-- Course summary. By default we only display the course progress. --> <!-- Course summary. By default we only display the course progress. -->
<core-dynamic-component [component]="courseSummaryComponent" [data]="data"> <core-dynamic-component [component]="courseSummaryComponent" [data]="data">
<ion-list no-lines *ngIf="course.progress != null && course.progress >= 0" class="core-format-progress-list"> <ion-list no-lines *ngIf="selectedSection && selectedSection.id == allSectionsId && course.progress != null && course.progress >= 0" class="core-format-progress-list">
<ion-item *ngIf="course.progress != null && course.progress >= 0" class="core-course-progress"> <ion-item class="core-course-progress">
<core-progress-bar [progress]="course.progress"></core-progress-bar> <core-progress-bar [progress]="course.progress"></core-progress-bar>
</ion-item> </ion-item>
</ion-list> </ion-list>