mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
Improved post activity feed table
no issue - Fixed counter at the bottom - Fixed forward > backward not working
This commit is contained in:
parent
7c824556c2
commit
5ef0753611
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user