forked from EVOgeek/Vmeda.Online
		
	MOBILE-4092 courses: Fix access to hidden courses
This commit is contained in:
		
							parent
							
								
									a2e512de26
								
							
						
					
					
						commit
						689a36ac12
					
				| @ -28,7 +28,7 @@ | ||||
|     </ng-container> | ||||
| 
 | ||||
|     <ion-item class="ion-text-wrap" button detail="false" (click)="openCourse()" [attr.aria-label]="course.displayname || course.fullname" | ||||
|         [class.item-disabled]="course.visible == 0"> | ||||
|         [class.core-course-disabled]="course.visible == 0"> | ||||
| 
 | ||||
|         <ng-container *ngIf="layout == 'list' || layout == 'listwithenrol'"> | ||||
|             <ion-icon *ngIf="!course.courseImage" name="fas-graduation-cap" slot="start" class="course-icon core-course-thumb" | ||||
|  | ||||
| @ -39,6 +39,11 @@ | ||||
|     color: var(--core-star-color); | ||||
| } | ||||
| 
 | ||||
| // Simulate item[disabled] but keep pointer-events for hidden courses. | ||||
| ion-item.core-course-disabled { | ||||
|     opacity: .8; | ||||
| } | ||||
| 
 | ||||
| button { | ||||
|     z-index: 1; | ||||
| } | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
|         <img *ngIf="course.courseImage" [src]="course.courseImage" core-external-content alt="" /> | ||||
|     </div> | ||||
|     <ion-item button (click)="openCourse()" [attr.aria-label]="course.displayname || course.fullname" class="core-course-header" | ||||
|         [class.item-disabled]="course.visible == 0" | ||||
|         [class.core-course-disabled]="course.visible == 0" | ||||
|         [class.core-course-only-title]="!showAll || progress < 0 && completionUserTracked === false" detail="false"> | ||||
|         <ion-label class="ion-text-wrap core-course-title" | ||||
|             [class.core-course-with-buttons]="courseOptionMenuEnabled || (downloadCourseEnabled && showDownload)" | ||||
|  | ||||
| @ -113,6 +113,12 @@ | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| // Common styles. | ||||
| // Simulate item[disabled] but keep pointer-events for hidden courses. | ||||
| ion-item.core-course-disabled { | ||||
|     opacity: .8; | ||||
| } | ||||
| 
 | ||||
| :host-context(.core-horizontal-scroll) { | ||||
|     @include horizontal_scroll_item(80%, 250px, 300px); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user