Merge pull request #2278 from KietChan/MOBILE-3290_integration
MOBILE-3249 components: Hide delete menu item while downloadingmain
commit
6d06a7e41c
|
@ -815,6 +815,11 @@ export class CoreCourseHelperProvider {
|
|||
}
|
||||
}
|
||||
|
||||
if (moduleInfo.status == CoreConstants.DOWNLOADING) {
|
||||
// Set this to 0 to prevent "remove file" option showing up while downloading.
|
||||
instance.size = 0;
|
||||
}
|
||||
|
||||
if (typeof instance.contextMenuStatusObserver == 'undefined' && component) {
|
||||
instance.contextMenuStatusObserver = this.eventsProvider.on(CoreEventsProvider.PACKAGE_STATUS_CHANGED, (data) => {
|
||||
if (data.componentId == module.id && data.component == component) {
|
||||
|
|
Loading…
Reference in New Issue