forked from CIT/Vmeda.Online
		
	MOBILE-2431 course: Allow selecting sections from context menu
This commit is contained in:
		
							parent
							
								
									8f6995b440
								
							
						
					
					
						commit
						867e126ab4
					
				| @ -1,3 +1,10 @@ | ||||
| <!-- Buttons to add to the header. *ngIf is needed, otherwise the component is executed too soon and doesn't find the header. --> | ||||
| <core-navbar-buttons end *ngIf="loaded"> | ||||
|     <core-context-menu> | ||||
|         <core-context-menu-item [hidden]="!displaySectionSelector || !sections || !sections.length" [priority]="500" [content]="'core.course.sections' | translate" (action)="showSectionSelector($event)" iconAction="menu"></core-context-menu-item> | ||||
|     </core-context-menu> | ||||
| </core-navbar-buttons> | ||||
| 
 | ||||
| <!-- Default course format. --> | ||||
| <core-dynamic-component [component]="courseFormatComponent" [data]="data"> | ||||
|     <!-- Course summary. By default we only display the course progress. --> | ||||
|  | ||||
| @ -10,10 +10,10 @@ | ||||
| </ion-header> | ||||
| <ion-content> | ||||
|     <ng-container *ngFor="let section of sections"> | ||||
|         <ion-item *ngIf="sectionHasContent(section)" text-wrap (click)="selectSection(section)" [class.core-primary-item]="selected.id == section.id" [class.item-dimmed]="section.visible === 0 || section.uservisible === false"> | ||||
|         <a ion-item *ngIf="sectionHasContent(section)" text-wrap (click)="selectSection(section)" [class.core-primary-item]="selected.id == section.id" [class.item-dimmed]="section.visible === 0 || section.uservisible === false" detail-none> | ||||
|             <h2><core-format-text [text]="section.formattedName || section.name"></core-format-text></h2> | ||||
|             <ion-badge color="secondary" *ngIf="section.visible === 0">{{ 'core.course.nocontentavailable' | translate }}</ion-badge> | ||||
|             <ion-badge color="secondary" *ngIf="section.availabilityinfo"><core-format-text  [text]=" section.availabilityinfo"></core-format-text></ion-badge> | ||||
|         </ion-item> | ||||
|         </a> | ||||
|     </ng-container> | ||||
| </ion-content> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user