forked from EVOgeek/Vmeda.Online
		
	MOBILE-3855 completion: Fix manual completion when recent item clicked
This commit is contained in:
		
							parent
							
								
									32c186aebe
								
							
						
					
					
						commit
						67c4a3e928
					
				| @ -100,6 +100,9 @@ export class CoreCourseModuleMainResourceComponent implements OnInit, OnDestroy, | |||||||
|         this.showCompletion = !!CoreSites.getCurrentSite()?.isVersionGreaterEqualThan('3.11'); |         this.showCompletion = !!CoreSites.getCurrentSite()?.isVersionGreaterEqualThan('3.11'); | ||||||
| 
 | 
 | ||||||
|         if (this.showCompletion) { |         if (this.showCompletion) { | ||||||
|  |             CoreCourseHelper.calculateModuleCompletionData(this.module, this.courseId); | ||||||
|  |             CoreCourseHelper.loadModuleOfflineCompletion(this.courseId, this.module); | ||||||
|  | 
 | ||||||
|             this.completionObserver = CoreEvents.on(CoreEvents.COMPLETION_MODULE_VIEWED, async (data) => { |             this.completionObserver = CoreEvents.on(CoreEvents.COMPLETION_MODULE_VIEWED, async (data) => { | ||||||
|                 if (data && data.cmId == this.module.id) { |                 if (data && data.cmId == this.module.id) { | ||||||
|                     await CoreCourse.invalidateModule(this.module.id); |                     await CoreCourse.invalidateModule(this.module.id); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user