forked from EVOgeek/Vmeda.Online
		
	MOBILE-2843 course: Improve show prefetch group of courses
This commit is contained in:
		
							parent
							
								
									fe25e65039
								
							
						
					
					
						commit
						4aa5d4a6a1
					
				| @ -29,6 +29,7 @@ ion-app.app-root core-empty-box { | |||||||
| 
 | 
 | ||||||
|     .icon { |     .icon { | ||||||
|       font-size: 120px; |       font-size: 120px; | ||||||
|  |       width: auto; | ||||||
|     } |     } | ||||||
|     img { |     img { | ||||||
|       height: 125px; |       height: 125px; | ||||||
|  | |||||||
| @ -758,10 +758,11 @@ export class CoreCourseHelperProvider { | |||||||
|      * |      * | ||||||
|      * @param  {any[]}        courses  Courses array to get info from. |      * @param  {any[]}        courses  Courses array to get info from. | ||||||
|      * @param  {any}          prefetch Prefetch information. |      * @param  {any}          prefetch Prefetch information. | ||||||
|  |      * @param  {number}       [minCourses=2] Min course to show icon. | ||||||
|      * @return {Promise<any>}          Resolved with the prefetch information updated when done. |      * @return {Promise<any>}          Resolved with the prefetch information updated when done. | ||||||
|      */ |      */ | ||||||
|     initPrefetchCoursesIcons(courses: any[], prefetch: any): Promise<any> { |     initPrefetchCoursesIcons(courses: any[], prefetch: any, minCourses: number = 2): Promise<any> { | ||||||
|         if (!courses || courses.length < 2) { |         if (!courses || courses.length < minCourses) { | ||||||
|             // Not enough courses.
 |             // Not enough courses.
 | ||||||
|             prefetch.icon = ''; |             prefetch.icon = ''; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user