forked from CIT/Vmeda.Online
		
	MOBILE-2955 quiz: Update page when download finishes
This commit is contained in:
		
							parent
							
								
									265f4a40f4
								
							
						
					
					
						commit
						c712703ece
					
				| @ -511,6 +511,12 @@ export class AddonModQuizIndexComponent extends CoreCourseModuleMainActivityComp | ||||
|      */ | ||||
|     protected showStatus(status: string, previousStatus?: string): void { | ||||
|         this.showStatusSpinner = status == CoreConstants.DOWNLOADING; | ||||
| 
 | ||||
|         if (status == CoreConstants.DOWNLOADED && previousStatus == CoreConstants.DOWNLOADING) { | ||||
|             // Quiz downloaded now, maybe a new attempt was created. Load content again.
 | ||||
|             this.loaded = false; | ||||
|             this.loadContent(); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user