diff options
author | Chocobozzz <me@florianbigard.com> | 2019-01-14 15:32:09 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-01-14 15:32:09 +0100 |
commit | 9a39392a7e6b3f180104856a4ea893e5baf86a02 (patch) | |
tree | 11c5f568d6e5a8e67fb925337c83efd57adf9111 /client/src/app/shared/users/user-notifications.component.ts | |
parent | f57ad0d22c527328b1412aa1c8c3f0d4819219ca (diff) | |
download | PeerTube-9a39392a7e6b3f180104856a4ea893e5baf86a02.tar.gz PeerTube-9a39392a7e6b3f180104856a4ea893e5baf86a02.tar.zst PeerTube-9a39392a7e6b3f180104856a4ea893e5baf86a02.zip |
Fix notification socket
Should be in core module to share the same subject to all the app
Diffstat (limited to 'client/src/app/shared/users/user-notifications.component.ts')
-rw-r--r-- | client/src/app/shared/users/user-notifications.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/users/user-notifications.component.ts b/client/src/app/shared/users/user-notifications.component.ts index 50c495a9a..e3913ba56 100644 --- a/client/src/app/shared/users/user-notifications.component.ts +++ b/client/src/app/shared/users/user-notifications.component.ts | |||
@@ -13,6 +13,7 @@ import { UserNotification } from '@app/shared/users/user-notification.model' | |||
13 | export class UserNotificationsComponent implements OnInit { | 13 | export class UserNotificationsComponent implements OnInit { |
14 | @Input() ignoreLoadingBar = false | 14 | @Input() ignoreLoadingBar = false |
15 | @Input() infiniteScroll = true | 15 | @Input() infiniteScroll = true |
16 | @Input() itemsPerPage = 20 | ||
16 | 17 | ||
17 | notifications: UserNotification[] = [] | 18 | notifications: UserNotification[] = [] |
18 | 19 | ||
@@ -21,7 +22,7 @@ export class UserNotificationsComponent implements OnInit { | |||
21 | 22 | ||
22 | componentPagination: ComponentPagination = { | 23 | componentPagination: ComponentPagination = { |
23 | currentPage: 1, | 24 | currentPage: 1, |
24 | itemsPerPage: 20, | 25 | itemsPerPage: this.itemsPerPage, |
25 | totalItems: null | 26 | totalItems: null |
26 | } | 27 | } |
27 | 28 | ||