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/shared/users/user-history.service.ts | 4 ++-- client/src/app/shared/users/user-notification.service.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app/shared/users') diff --git a/client/src/app/shared/users/user-history.service.ts b/client/src/app/shared/users/user-history.service.ts index 9ed25bfc7..b358cdf20 100644 --- a/client/src/app/shared/users/user-history.service.ts +++ b/client/src/app/shared/users/user-history.service.ts @@ -5,7 +5,7 @@ import { RestExtractor } from '../rest/rest-extractor.service' import { RestService } from '../rest/rest.service' import { Video } from '../video/video.model' import { catchError, map, switchMap } from 'rxjs/operators' -import { ComponentPagination } from '@app/shared/rest/component-pagination.model' +import { ComponentPaginationLight } from '@app/shared/rest/component-pagination.model' import { VideoService } from '@app/shared/video/video.service' import { ResultList } from '../../../../../shared' @@ -20,7 +20,7 @@ export class UserHistoryService { private videoService: VideoService ) {} - getUserVideosHistory (historyPagination: ComponentPagination) { + getUserVideosHistory (historyPagination: ComponentPaginationLight) { const pagination = this.restService.componentPaginationToRestPagination(historyPagination) let params = new HttpParams() diff --git a/client/src/app/shared/users/user-notification.service.ts b/client/src/app/shared/users/user-notification.service.ts index ae0bc9cb1..e525a1d58 100644 --- a/client/src/app/shared/users/user-notification.service.ts +++ b/client/src/app/shared/users/user-notification.service.ts @@ -6,7 +6,7 @@ import { environment } from '../../../environments/environment' import { ResultList, UserNotification as UserNotificationServer, UserNotificationSetting } from '../../../../../shared' import { UserNotification } from './user-notification.model' import { AuthService } from '../../core' -import { ComponentPagination } from '../rest/component-pagination.model' +import { ComponentPaginationLight } from '../rest/component-pagination.model' import { User } from '../users/user.model' import { UserNotificationSocket } from '@app/core/notification/user-notification-socket.service' @@ -23,7 +23,7 @@ export class UserNotificationService { private userNotificationSocket: UserNotificationSocket ) {} - listMyNotifications (pagination: ComponentPagination, unread?: boolean, ignoreLoadingBar = false) { + listMyNotifications (pagination: ComponentPaginationLight, unread?: boolean, ignoreLoadingBar = false) { let params = new HttpParams() params = this.restService.addRestGetParams(params, this.restService.componentPaginationToRestPagination(pagination)) -- cgit v1.2.3