MOBILE-3249 components: Hide delete menu item while downloading
parent
1411ef0697
commit
f7a442040c
|
@ -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) {
|
if (typeof instance.contextMenuStatusObserver == 'undefined' && component) {
|
||||||
instance.contextMenuStatusObserver = this.eventsProvider.on(CoreEventsProvider.PACKAGE_STATUS_CHANGED, (data) => {
|
instance.contextMenuStatusObserver = this.eventsProvider.on(CoreEventsProvider.PACKAGE_STATUS_CHANGED, (data) => {
|
||||||
if (data.componentId == module.id && data.component == component) {
|
if (data.componentId == module.id && data.component == component) {
|
||||||
|
|
Loading…
Reference in New Issue