diff --git a/ghost/admin/app/components/posts/post-activity-feed.hbs b/ghost/admin/app/components/posts/post-activity-feed.hbs index 719fb7ea39..2ff443ee7f 100644 --- a/ghost/admin/app/components/posts/post-activity-feed.hbs +++ b/ghost/admin/app/components/posts/post-activity-feed.hbs @@ -76,7 +76,7 @@ {{/let}} {{/each}} - {{#if (not (compute (fn this.isPaginationNeeded eventsFetcher)))}} + {{#if (compute (fn this.areStubsNeeded eventsFetcher))}} {{#let (compute (fn this.getAmountOfStubs eventsFetcher)) as |stubs|}} {{#each stubs}}
@@ -94,36 +94,38 @@ {{svg-jar "filter"}} See members + {{else}} +
{{/if}}
- {{#if (compute (fn this.isPaginationNeeded eventsFetcher))}} + {{#if (compute (fn this.isPaginationNotNeeded eventsFetcher))}} Showing {{eventsFetcher.totalEvents}} in total {{else}} Showing {{eventsFetcher.previousEvents}}-{{eventsFetcher.shownEvents}} of {{eventsFetcher.totalEvents}} + +
+ + + +
{{/if}} - -
- - - -
diff --git a/ghost/admin/app/components/posts/post-activity-feed.js b/ghost/admin/app/components/posts/post-activity-feed.js index 2cc2153075..9f2fdfc6f9 100644 --- a/ghost/admin/app/components/posts/post-activity-feed.js +++ b/ghost/admin/app/components/posts/post-activity-feed.js @@ -69,7 +69,12 @@ export default class PostActivityFeed extends Component { } @action - isPaginationNeeded({totalEvents}) { + isPaginationNotNeeded({totalEvents}) { return (totalEvents <= this._pageSize); } + + @action + areStubsNeeded({totalEvents}) { + return totalEvents > this._pageSize || this.args.eventType === 'feedback'; + } }