MOBILE-3320 course: Fix section download status calculation
parent
4c304af5e6
commit
92b3dbe225
|
@ -735,7 +735,7 @@ export class CoreCourseModulePrefetchDelegateService extends CoreDelegate<CoreCo
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
result.status = CoreFilepool.determinePackagesStatus(status, modStatus);
|
result.status = CoreFilepool.determinePackagesStatus(result.status, modStatus);
|
||||||
result[modStatus].push(module);
|
result[modStatus].push(module);
|
||||||
result.total++;
|
result.total++;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -749,7 +749,7 @@ export class CoreCourseModulePrefetchDelegateService extends CoreDelegate<CoreCo
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
result.status = CoreFilepool.determinePackagesStatus(status, cacheStatus);
|
result.status = CoreFilepool.determinePackagesStatus(result.status, cacheStatus);
|
||||||
result[cacheStatus].push(module);
|
result[cacheStatus].push(module);
|
||||||
result.total++;
|
result.total++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue