aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-07 11:20:58 +0200
committerChocobozzz <me@florianbigard.com>2018-05-07 11:20:58 +0200
commit95166f9aafa378a2d39fd76ef773f39dcb3f8b39 (patch)
treec0b91ee127bed329c9176aad85f26cbf611748b3 /client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts
parent13a6b53655cdd7baba494abc3c9ff52788d4651e (diff)
downloadPeerTube-95166f9aafa378a2d39fd76ef773f39dcb3f8b39.tar.gz
PeerTube-95166f9aafa378a2d39fd76ef773f39dcb3f8b39.tar.zst
PeerTube-95166f9aafa378a2d39fd76ef773f39dcb3f8b39.zip
Add link to the channel page in watch page
Diffstat (limited to 'client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts')
-rw-r--r--client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts3
1 files changed, 3 insertions, 0 deletions
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 {
12 VIDEO_CHANNEL_SUPPORT 12 VIDEO_CHANNEL_SUPPORT
13} from '@app/shared/forms/form-validators/video-channel' 13} from '@app/shared/forms/form-validators/video-channel'
14import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' 14import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
15import { AuthService } from '@app/core'
15 16
16@Component({ 17@Component({
17 selector: 'my-account-video-channel-create', 18 selector: 'my-account-video-channel-create',
@@ -34,6 +35,7 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE
34 } 35 }
35 36
36 constructor ( 37 constructor (
38 private authService: AuthService,
37 private notificationsService: NotificationsService, 39 private notificationsService: NotificationsService,
38 private router: Router, 40 private router: Router,
39 private formBuilder: FormBuilder, 41 private formBuilder: FormBuilder,
@@ -68,6 +70,7 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE
68 70
69 this.videoChannelService.createVideoChannel(videoChannelCreate).subscribe( 71 this.videoChannelService.createVideoChannel(videoChannelCreate).subscribe(
70 () => { 72 () => {
73 this.authService.refreshUserInformation()
71 this.notificationsService.success('Success', `Video channel ${videoChannelCreate.displayName} created.`) 74 this.notificationsService.success('Success', `Video channel ${videoChannelCreate.displayName} created.`)
72 this.router.navigate([ '/my-account', 'video-channels' ]) 75 this.router.navigate([ '/my-account', 'video-channels' ])
73 }, 76 },