From 440d39c52d4efb878b6a2e21584d6b8f52072f27 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Jan 2020 14:40:08 +0100 Subject: Skip videos count on client if we don't use it --- client/src/app/videos/video-list/video-local.component.ts | 3 ++- client/src/app/videos/video-list/video-most-liked.component.ts | 3 ++- client/src/app/videos/video-list/video-recently-added.component.ts | 3 ++- client/src/app/videos/video-list/video-trending.component.ts | 3 ++- client/src/app/videos/video-list/video-user-subscriptions.component.ts | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) (limited to 'client/src/app/videos/video-list') diff --git a/client/src/app/videos/video-list/video-local.component.ts b/client/src/app/videos/video-list/video-local.component.ts index b96e46e6a..59f65f95c 100644 --- a/client/src/app/videos/video-list/video-local.component.ts +++ b/client/src/app/videos/video-list/video-local.component.ts @@ -62,7 +62,8 @@ export class VideoLocalComponent extends AbstractVideoList implements OnInit, On sort: this.sort, filter: this.filter, categoryOneOf: this.categoryOneOf, - languageOneOf: this.languageOneOf + languageOneOf: this.languageOneOf, + skipCount: true } return this.hooks.wrapObsFun( diff --git a/client/src/app/videos/video-list/video-most-liked.component.ts b/client/src/app/videos/video-list/video-most-liked.component.ts index f94a7da04..6ff7a1e0e 100644 --- a/client/src/app/videos/video-list/video-most-liked.component.ts +++ b/client/src/app/videos/video-list/video-most-liked.component.ts @@ -50,7 +50,8 @@ export class VideoMostLikedComponent extends AbstractVideoList implements OnInit videoPagination: newPagination, sort: this.sort, categoryOneOf: this.categoryOneOf, - languageOneOf: this.languageOneOf + languageOneOf: this.languageOneOf, + skipCount: true } return this.hooks.wrapObsFun( diff --git a/client/src/app/videos/video-list/video-recently-added.component.ts b/client/src/app/videos/video-list/video-recently-added.component.ts index 5c50fd396..7568f4536 100644 --- a/client/src/app/videos/video-list/video-recently-added.component.ts +++ b/client/src/app/videos/video-list/video-recently-added.component.ts @@ -54,7 +54,8 @@ export class VideoRecentlyAddedComponent extends AbstractVideoList implements On videoPagination: newPagination, sort: this.sort, categoryOneOf: this.categoryOneOf, - languageOneOf: this.languageOneOf + languageOneOf: this.languageOneOf, + skipCount: true } return this.hooks.wrapObsFun( diff --git a/client/src/app/videos/video-list/video-trending.component.ts b/client/src/app/videos/video-list/video-trending.component.ts index bc88679fa..e29830b5b 100644 --- a/client/src/app/videos/video-list/video-trending.component.ts +++ b/client/src/app/videos/video-list/video-trending.component.ts @@ -67,7 +67,8 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit, videoPagination: newPagination, sort: this.sort, categoryOneOf: this.categoryOneOf, - languageOneOf: this.languageOneOf + languageOneOf: this.languageOneOf, + skipCount: true } return this.hooks.wrapObsFun( diff --git a/client/src/app/videos/video-list/video-user-subscriptions.component.ts b/client/src/app/videos/video-list/video-user-subscriptions.component.ts index 0cd67db29..cf0b15054 100644 --- a/client/src/app/videos/video-list/video-user-subscriptions.component.ts +++ b/client/src/app/videos/video-list/video-user-subscriptions.component.ts @@ -55,7 +55,8 @@ export class VideoUserSubscriptionsComponent extends AbstractVideoList implement const newPagination = immutableAssign(this.pagination, { currentPage: page }) const params = { videoPagination: newPagination, - sort: this.sort + sort: this.sort, + skipCount: true } return this.hooks.wrapObsFun( -- cgit v1.2.3