aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.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-update.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-update.component.ts')
-rw-r--r--client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.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-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 {
14import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' 14import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
15import { Subscription } from 'rxjs/Subscription' 15import { Subscription } from 'rxjs/Subscription'
16import { VideoChannel } from '@app/shared/video-channel/video-channel.model' 16import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
17import { AuthService } from '@app/core'
17 18
18@Component({ 19@Component({
19 selector: 'my-account-video-channel-update', 20 selector: 'my-account-video-channel-update',
@@ -39,6 +40,7 @@ export class MyAccountVideoChannelUpdateComponent extends MyAccountVideoChannelE
39 private paramsSub: Subscription 40 private paramsSub: Subscription
40 41
41 constructor ( 42 constructor (
43 private authService: AuthService,
42 private notificationsService: NotificationsService, 44 private notificationsService: NotificationsService,
43 private router: Router, 45 private router: Router,
44 private route: ActivatedRoute, 46 private route: ActivatedRoute,
@@ -96,6 +98,7 @@ export class MyAccountVideoChannelUpdateComponent extends MyAccountVideoChannelE
96 98
97 this.videoChannelService.updateVideoChannel(this.videoChannelToUpdate.uuid, videoChannelUpdate).subscribe( 99 this.videoChannelService.updateVideoChannel(this.videoChannelToUpdate.uuid, videoChannelUpdate).subscribe(
98 () => { 100 () => {
101 this.authService.refreshUserInformation()
99 this.notificationsService.success('Success', `Video channel ${videoChannelUpdate.displayName} updated.`) 102 this.notificationsService.success('Success', `Video channel ${videoChannelUpdate.displayName} updated.`)
100 this.router.navigate([ '/my-account', 'video-channels' ]) 103 this.router.navigate([ '/my-account', 'video-channels' ])
101 }, 104 },