diff --git a/src/client/app/common/scripts/paging.ts b/src/client/app/common/scripts/paging.ts index b4f2ec1ae..a0cd2891d 100644 --- a/src/client/app/common/scripts/paging.ts +++ b/src/client/app/common/scripts/paging.ts @@ -82,14 +82,18 @@ export default (opts) => ({ limit: (this.pagination.limit || 10) + 1, ...params }).then(x => { - if (x.length == (this.pagination.limit || 10) + 1) { - x.pop(); - this.items = x; - this.more = true; - } else { - this.items = x; + if (this.pagination.forceDisableReadmore) { this.more = false; + } else { + if (x.length == (this.pagination.limit || 10) + 1) { + x.pop(); + this.more = true; + } else { + this.more = false; + } } + + this.items = x; this.offset = x.length; this.inited = true; this.fetching = false; diff --git a/src/client/app/common/views/pages/featured.vue b/src/client/app/common/views/pages/featured.vue index c00361aa8..03c6a6a05 100644 --- a/src/client/app/common/views/pages/featured.vue +++ b/src/client/app/common/views/pages/featured.vue @@ -25,6 +25,7 @@ export default Vue.extend({ pagination: { endpoint: 'notes/featured', limit: 29, + forceDisableReadmore: true, }, notesComponent: