We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1411ef0 commit f7a4420Copy full SHA for f7a4420
src/core/course/providers/helper.ts
@@ -815,6 +815,11 @@ export class CoreCourseHelperProvider {
815
}
816
817
818
+ if (moduleInfo.status == CoreConstants.DOWNLOADING) {
819
+ // Set this to 0 to prevent "remove file" option showing up while downloading.
820
+ instance.size = 0;
821
+ }
822
+
823
if (typeof instance.contextMenuStatusObserver == 'undefined' && component) {
824
instance.contextMenuStatusObserver = this.eventsProvider.on(CoreEventsProvider.PACKAGE_STATUS_CHANGED, (data) => {
825
if (data.componentId == module.id && data.component == component) {
0 commit comments