MOBILE-2955 quiz: Update page when download finishes
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…
Reference in New Issue