aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts
diff options
context:
space:
mode:
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.ts6
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'
4import { AccountService } from '@app/shared/account/account.service' 4import { AccountService } from '@app/shared/account/account.service'
5import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' 5import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
6import { concatMap, map, switchMap, tap } from 'rxjs/operators' 6import { concatMap, map, switchMap, tap } from 'rxjs/operators'
7import { from, Subscription } from 'rxjs' 7import { from, Subject, Subscription } from 'rxjs'
8import { VideoChannel } from '@app/shared/video-channel/video-channel.model' 8import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
9import { Video } from '@app/shared/video/video.model' 9import { Video } from '@app/shared/video/video.model'
10import { AuthService } from '@app/core' 10import { 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