diff --git a/src/addons/block/timeline/components/events/events.ts b/src/addons/block/timeline/components/events/events.ts index 653313e31..bdebff829 100644 --- a/src/addons/block/timeline/components/events/events.ts +++ b/src/addons/block/timeline/components/events/events.ts @@ -76,6 +76,7 @@ export class AddonBlockTimelineEventsComponent implements OnChanges { events: eventsByDay[dayTimestamp], }; }); + this.loadingMore = false; } else { this.empty = true; } diff --git a/src/addons/block/timeline/components/timeline/timeline.ts b/src/addons/block/timeline/components/timeline/timeline.ts index d0602b990..25daa185a 100644 --- a/src/addons/block/timeline/components/timeline/timeline.ts +++ b/src/addons/block/timeline/components/timeline/timeline.ts @@ -164,7 +164,7 @@ export class AddonBlockTimelineComponent extends CoreBlockBaseComponent implemen protected async fetchMyOverviewTimeline(afterEventId?: number): Promise { const events = await AddonBlockTimeline.getActionEventsByTimesort(afterEventId, this.searchText); - this.timeline.events = events.events; + this.timeline.events = afterEventId ? this.timeline.events.concat(events.events) : events.events; this.timeline.canLoadMore = events.canLoadMore; }