From 95166f9aafa378a2d39fd76ef773f39dcb3f8b39 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 7 May 2018 11:20:58 +0200 Subject: Add link to the channel page in watch page --- .../my-account-video-channel-create.component.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts') diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts b/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts index 3cfe74752..c3c0ae63a 100644 --- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts +++ b/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts @@ -12,6 +12,7 @@ import { VIDEO_CHANNEL_SUPPORT } from '@app/shared/forms/form-validators/video-channel' import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' +import { AuthService } from '@app/core' @Component({ selector: 'my-account-video-channel-create', @@ -34,6 +35,7 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE } constructor ( + private authService: AuthService, private notificationsService: NotificationsService, private router: Router, private formBuilder: FormBuilder, @@ -68,6 +70,7 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE this.videoChannelService.createVideoChannel(videoChannelCreate).subscribe( () => { + this.authService.refreshUserInformation() this.notificationsService.success('Success', `Video channel ${videoChannelCreate.displayName} created.`) this.router.navigate([ '/my-account', 'video-channels' ]) }, -- cgit v1.2.3