diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-08 14:40:08 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-08 14:40:08 +0100 |
commit | 440d39c52d4efb878b6a2e21584d6b8f52072f27 (patch) | |
tree | 19ffd2dd545e125daf89c230e33d15f7827d10f7 /client/src/app/shared/users/user-notification.service.ts | |
parent | fe98765624cdd6695739bda719fcb726b71c2b2a (diff) | |
download | PeerTube-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/shared/users/user-notification.service.ts')
-rw-r--r-- | client/src/app/shared/users/user-notification.service.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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' | |||
6 | import { ResultList, UserNotification as UserNotificationServer, UserNotificationSetting } from '../../../../../shared' | 6 | import { ResultList, UserNotification as UserNotificationServer, UserNotificationSetting } from '../../../../../shared' |
7 | import { UserNotification } from './user-notification.model' | 7 | import { UserNotification } from './user-notification.model' |
8 | import { AuthService } from '../../core' | 8 | import { AuthService } from '../../core' |
9 | import { ComponentPagination } from '../rest/component-pagination.model' | 9 | import { ComponentPaginationLight } from '../rest/component-pagination.model' |
10 | import { User } from '../users/user.model' | 10 | import { User } from '../users/user.model' |
11 | import { UserNotificationSocket } from '@app/core/notification/user-notification-socket.service' | 11 | import { UserNotificationSocket } from '@app/core/notification/user-notification-socket.service' |
12 | 12 | ||
@@ -23,7 +23,7 @@ export class UserNotificationService { | |||
23 | private userNotificationSocket: UserNotificationSocket | 23 | private userNotificationSocket: UserNotificationSocket |
24 | ) {} | 24 | ) {} |
25 | 25 | ||
26 | listMyNotifications (pagination: ComponentPagination, unread?: boolean, ignoreLoadingBar = false) { | 26 | listMyNotifications (pagination: ComponentPaginationLight, unread?: boolean, ignoreLoadingBar = false) { |
27 | let params = new HttpParams() | 27 | let params = new HttpParams() |
28 | params = this.restService.addRestGetParams(params, this.restService.componentPaginationToRestPagination(pagination)) | 28 | params = this.restService.addRestGetParams(params, this.restService.componentPaginationToRestPagination(pagination)) |
29 | 29 | ||