Improved post activity feed table

no issue

- Fixed counter at the bottom
- Fixed forward > backward not working
This commit is contained in:
Simon Backx 2022-10-21 17:19:34 +02:00
parent 7c824556c2
commit 5ef0753611

View File

@ -47,9 +47,7 @@ export default class MembersEventsFetcher extends Resource {
}
getAmountOfPreviousEvents() {
return this.totalEvents > this.args.named.pageSize
? this.shownEvents - this.args.named.pageSize + 1
: this.data.length;
return this.shownEvents - this.data.length + 1;
}
async setup() {
@ -60,6 +58,7 @@ export default class MembersEventsFetcher extends Resource {
filter += `+${this.args.named.filter}`;
}
this.eventsBookmarks.push(currentTime);
await this.loadEventsTask.perform({filter}, actions.showNext);
}