Merge pull request #1397 from dpalou/MOBILE-2440

MOBILE-2440 course: Prevent all sections being repeated
main
Juan Leyva 2018-07-05 15:57:38 +02:00 committed by GitHub
commit e07be2bf89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@
<!-- Template to render a section. --> <!-- Template to render a section. -->
<ng-template #sectionTemplate let-section="section"> <ng-template #sectionTemplate let-section="section">
<section ion-list *ngIf="section.hasContent"> <section ion-list *ngIf="section.hasContent && section.id != allSectionsId">
<!-- Title is only displayed when viewing all sections. --> <!-- Title is only displayed when viewing all sections. -->
<ion-item-divider text-wrap color="light" *ngIf="selectedSection.id == allSectionsId && section.name"> <ion-item-divider text-wrap color="light" *ngIf="selectedSection.id == allSectionsId && section.name">
<core-format-text [text]="section.name"></core-format-text> <core-format-text [text]="section.name"></core-format-text>