forked from EVOgeek/Vmeda.Online
MOBILE-4470 timeline: Avoid filtering past courses
This may have been introduced by mistake in commit 0f5416e2f0. Looking at improvements introduced in 4.0, past courses were never filtered out but the UI says "No in-progress courses" when empty; that may have caused the confusion.
This commit is contained in:
parent
00fd418b84
commit
086a220f86
@ -256,9 +256,8 @@ export class AddonBlockTimelineComponent implements OnInit, ICoreBlockComponent
|
||||
.filter(
|
||||
course =>
|
||||
!course.hidden &&
|
||||
!CoreCoursesHelper.isPastCourse(course, gracePeriod.after) &&
|
||||
!CoreCoursesHelper.isFutureCourse(course, gracePeriod.after, gracePeriod.before) &&
|
||||
courseEvents[course.id].events.length > 0,
|
||||
!CoreCoursesHelper.isFutureCourse(course, gracePeriod.after, gracePeriod.before) &&
|
||||
courseEvents[course.id].events.length > 0,
|
||||
)
|
||||
.map(course => {
|
||||
const section = new AddonBlockTimelineSection(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user