From 5ef0753611c295a4566aec46c9571bbe16665f37 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Fri, 21 Oct 2022 17:19:34 +0200 Subject: [PATCH] Improved post activity feed table no issue - Fixed counter at the bottom - Fixed forward > backward not working --- ghost/admin/app/helpers/activity-feed-fetcher.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ghost/admin/app/helpers/activity-feed-fetcher.js b/ghost/admin/app/helpers/activity-feed-fetcher.js index e07fb071ef..b8d98927fb 100644 --- a/ghost/admin/app/helpers/activity-feed-fetcher.js +++ b/ghost/admin/app/helpers/activity-feed-fetcher.js @@ -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); }