forked from EVOgeek/Vmeda.Online
		
	MOBILE-3833 course: Fix open site home from module summary
This commit is contained in:
		
							parent
							
								
									5e0a46aa75
								
							
						
					
					
						commit
						da11a08c07
					
				| @ -1266,6 +1266,13 @@ export class CoreCourseProvider { | |||||||
|         course: CoreCourseAnyCourseData | { id: number }, |         course: CoreCourseAnyCourseData | { id: number }, | ||||||
|         navOptions?: CoreNavigationOptions, |         navOptions?: CoreNavigationOptions, | ||||||
|     ): Promise<void> { |     ): Promise<void> { | ||||||
|  |         if (course.id === CoreSites.getCurrentSite()?.getSiteHomeId()) { | ||||||
|  |             // Open site home.
 | ||||||
|  |             await CoreNavigator.navigate('/main/home/site', navOptions); | ||||||
|  | 
 | ||||||
|  |             return; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         const loading = await CoreDomUtils.showModalLoading(); |         const loading = await CoreDomUtils.showModalLoading(); | ||||||
| 
 | 
 | ||||||
|         // Wait for site plugins to be fetched.
 |         // Wait for site plugins to be fetched.
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user