diff options
Diffstat (limited to 'client/src/app/+accounts/account-video-channels/account-video-channels.component.ts')
-rw-r--r-- | client/src/app/+accounts/account-video-channels/account-video-channels.component.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts index 7144f4b5f..85dedd7de 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts | |||
@@ -4,7 +4,7 @@ import { Account } from '@app/shared/account/account.model' | |||
4 | import { AccountService } from '@app/shared/account/account.service' | 4 | import { AccountService } from '@app/shared/account/account.service' |
5 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | 5 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' |
6 | import { concatMap, map, switchMap, tap } from 'rxjs/operators' | 6 | import { concatMap, map, switchMap, tap } from 'rxjs/operators' |
7 | import { from, Subscription } from 'rxjs' | 7 | import { from, Subject, Subscription } from 'rxjs' |
8 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | 8 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' |
9 | import { Video } from '@app/shared/video/video.model' | 9 | import { Video } from '@app/shared/video/video.model' |
10 | import { AuthService } from '@app/core' | 10 | import { AuthService } from '@app/core' |
@@ -33,6 +33,8 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy { | |||
33 | } | 33 | } |
34 | videosSort: VideoSortField = '-publishedAt' | 34 | videosSort: VideoSortField = '-publishedAt' |
35 | 35 | ||
36 | onChannelDataSubject = new Subject<any>() | ||
37 | |||
36 | private accountSub: Subscription | 38 | private accountSub: Subscription |
37 | 39 | ||
38 | constructor ( | 40 | constructor ( |
@@ -75,6 +77,8 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy { | |||
75 | this.videoChannels.push(videoChannel) | 77 | this.videoChannels.push(videoChannel) |
76 | 78 | ||
77 | this.videos[videoChannel.id] = videos | 79 | this.videos[videoChannel.id] = videos |
80 | |||
81 | this.onChannelDataSubject.next([ videoChannel ]) | ||
78 | }) | 82 | }) |
79 | } | 83 | } |
80 | 84 | ||