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-update.component.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts') diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts b/client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts index 2b8415938..3cb8b9e9a 100644 --- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts +++ b/client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts @@ -14,6 +14,7 @@ import { import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' import { Subscription } from 'rxjs/Subscription' import { VideoChannel } from '@app/shared/video-channel/video-channel.model' +import { AuthService } from '@app/core' @Component({ selector: 'my-account-video-channel-update', @@ -39,6 +40,7 @@ export class MyAccountVideoChannelUpdateComponent extends MyAccountVideoChannelE private paramsSub: Subscription constructor ( + private authService: AuthService, private notificationsService: NotificationsService, private router: Router, private route: ActivatedRoute, @@ -96,6 +98,7 @@ export class MyAccountVideoChannelUpdateComponent extends MyAccountVideoChannelE this.videoChannelService.updateVideoChannel(this.videoChannelToUpdate.uuid, videoChannelUpdate).subscribe( () => { + this.authService.refreshUserInformation() this.notificationsService.success('Success', `Video channel ${videoChannelUpdate.displayName} updated.`) this.router.navigate([ '/my-account', 'video-channels' ]) }, -- cgit v1.2.3