MOBILE-4470 course-summary: Fix download status not updated
parent
1c84715f9a
commit
63777bc439
|
@ -123,7 +123,7 @@ export class CoreCourseModuleSummaryComponent implements OnInit, OnDestroy {
|
||||||
this.packageStatusObserver = CoreEvents.on(
|
this.packageStatusObserver = CoreEvents.on(
|
||||||
CoreEvents.PACKAGE_STATUS_CHANGED,
|
CoreEvents.PACKAGE_STATUS_CHANGED,
|
||||||
(data) => {
|
(data) => {
|
||||||
if (data.componentId == module.id && data.component == this.component) {
|
if (data.componentId === this.module?.id && data.component == this.component) {
|
||||||
this.getPackageStatus();
|
this.getPackageStatus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue