aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-08 14:40:08 +0100
committerChocobozzz <me@florianbigard.com>2020-01-08 14:40:08 +0100
commit440d39c52d4efb878b6a2e21584d6b8f52072f27 (patch)
tree19ffd2dd545e125daf89c230e33d15f7827d10f7 /client/src/app/videos
parentfe98765624cdd6695739bda719fcb726b71c2b2a (diff)
downloadPeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.tar.gz
PeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.tar.zst
PeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.zip
Skip videos count on client if we don't use it
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment.service.ts6
-rw-r--r--client/src/app/videos/video-list/video-local.component.ts3
-rw-r--r--client/src/app/videos/video-list/video-most-liked.component.ts3
-rw-r--r--client/src/app/videos/video-list/video-recently-added.component.ts3
-rw-r--r--client/src/app/videos/video-list/video-trending.component.ts3
-rw-r--r--client/src/app/videos/video-list/video-user-subscriptions.component.ts3
6 files changed, 13 insertions, 8 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment.service.ts b/client/src/app/videos/+video-watch/comment/video-comment.service.ts
index 72fbf5d25..a81e5236a 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment.service.ts
+++ b/client/src/app/videos/+video-watch/comment/video-comment.service.ts
@@ -3,7 +3,7 @@ import { HttpClient, HttpParams } from '@angular/common/http'
3import { Injectable } from '@angular/core' 3import { Injectable } from '@angular/core'
4import { objectLineFeedToHtml } from '@app/shared/misc/utils' 4import { objectLineFeedToHtml } from '@app/shared/misc/utils'
5import { Observable } from 'rxjs' 5import { Observable } from 'rxjs'
6import { ResultList, FeedFormat } from '../../../../../../shared/models' 6import { FeedFormat, ResultList } from '../../../../../../shared/models'
7import { 7import {
8 VideoComment as VideoCommentServerModel, 8 VideoComment as VideoCommentServerModel,
9 VideoCommentCreate, 9 VideoCommentCreate,
@@ -11,7 +11,7 @@ import {
11} from '../../../../../../shared/models/videos/video-comment.model' 11} from '../../../../../../shared/models/videos/video-comment.model'
12import { environment } from '../../../../environments/environment' 12import { environment } from '../../../../environments/environment'
13import { RestExtractor, RestService } from '../../../shared/rest' 13import { RestExtractor, RestService } from '../../../shared/rest'
14import { ComponentPagination } from '../../../shared/rest/component-pagination.model' 14import { ComponentPaginationLight } from '../../../shared/rest/component-pagination.model'
15import { CommentSortField } from '../../../shared/video/sort-field.type' 15import { CommentSortField } from '../../../shared/video/sort-field.type'
16import { VideoComment } from './video-comment.model' 16import { VideoComment } from './video-comment.model'
17 17
@@ -50,7 +50,7 @@ export class VideoCommentService {
50 50
51 getVideoCommentThreads (parameters: { 51 getVideoCommentThreads (parameters: {
52 videoId: number | string, 52 videoId: number | string,
53 componentPagination: ComponentPagination, 53 componentPagination: ComponentPaginationLight,
54 sort: CommentSortField 54 sort: CommentSortField
55 }): Observable<ResultList<VideoComment>> { 55 }): Observable<ResultList<VideoComment>> {
56 const { videoId, componentPagination, sort } = parameters 56 const { videoId, componentPagination, sort } = parameters
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
62 sort: this.sort, 62 sort: this.sort,
63 filter: this.filter, 63 filter: this.filter,
64 categoryOneOf: this.categoryOneOf, 64 categoryOneOf: this.categoryOneOf,
65 languageOneOf: this.languageOneOf 65 languageOneOf: this.languageOneOf,
66 skipCount: true
66 } 67 }
67 68
68 return this.hooks.wrapObsFun( 69 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
50 videoPagination: newPagination, 50 videoPagination: newPagination,
51 sort: this.sort, 51 sort: this.sort,
52 categoryOneOf: this.categoryOneOf, 52 categoryOneOf: this.categoryOneOf,
53 languageOneOf: this.languageOneOf 53 languageOneOf: this.languageOneOf,
54 skipCount: true
54 } 55 }
55 56
56 return this.hooks.wrapObsFun( 57 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
54 videoPagination: newPagination, 54 videoPagination: newPagination,
55 sort: this.sort, 55 sort: this.sort,
56 categoryOneOf: this.categoryOneOf, 56 categoryOneOf: this.categoryOneOf,
57 languageOneOf: this.languageOneOf 57 languageOneOf: this.languageOneOf,
58 skipCount: true
58 } 59 }
59 60
60 return this.hooks.wrapObsFun( 61 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,
67 videoPagination: newPagination, 67 videoPagination: newPagination,
68 sort: this.sort, 68 sort: this.sort,
69 categoryOneOf: this.categoryOneOf, 69 categoryOneOf: this.categoryOneOf,
70 languageOneOf: this.languageOneOf 70 languageOneOf: this.languageOneOf,
71 skipCount: true
71 } 72 }
72 73
73 return this.hooks.wrapObsFun( 74 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
55 const newPagination = immutableAssign(this.pagination, { currentPage: page }) 55 const newPagination = immutableAssign(this.pagination, { currentPage: page })
56 const params = { 56 const params = {
57 videoPagination: newPagination, 57 videoPagination: newPagination,
58 sort: this.sort 58 sort: this.sort,
59 skipCount: true
59 } 60 }
60 61
61 return this.hooks.wrapObsFun( 62 return this.hooks.wrapObsFun(