diff options
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.ts | 3 |
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 { | |||
14 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | 14 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' |
15 | import { Subscription } from 'rxjs/Subscription' | 15 | import { Subscription } from 'rxjs/Subscription' |
16 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | 16 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' |
17 | import { 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 | }, |