MOBILE-3881 timeline: Concatenate loaded more events
parent
f0c544df03
commit
7eff952b6b
|
@ -76,6 +76,7 @@ export class AddonBlockTimelineEventsComponent implements OnChanges {
|
|||
events: eventsByDay[dayTimestamp],
|
||||
};
|
||||
});
|
||||
this.loadingMore = false;
|
||||
} else {
|
||||
this.empty = true;
|
||||
}
|
||||
|
|
|
@ -164,7 +164,7 @@ export class AddonBlockTimelineComponent extends CoreBlockBaseComponent implemen
|
|||
protected async fetchMyOverviewTimeline(afterEventId?: number): Promise<void> {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue