aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts3
-rw-r--r--client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts3
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.html4
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.scss10
4 files changed, 19 insertions, 1 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 },
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 },
diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html
index f38e90927..402a91647 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.html
+++ b/client/src/app/videos/+video-watch/video-watch.component.html
@@ -17,7 +17,9 @@
17 </div> 17 </div>
18 18
19 <div class="video-info-channel"> 19 <div class="video-info-channel">
20 {{ video.channel.displayName }} 20 <a [routerLink]="[ '/video-channels', video.channel.id ]" title="Go the channel page">
21 {{ video.channel.displayName }}
22 </a>
21 <!-- Here will be the subscribe button --> 23 <!-- Here will be the subscribe button -->
22 </div> 24 </div>
23 25
diff --git a/client/src/app/videos/+video-watch/video-watch.component.scss b/client/src/app/videos/+video-watch/video-watch.component.scss
index b4d9841fe..508c553a4 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.scss
+++ b/client/src/app/videos/+video-watch/video-watch.component.scss
@@ -66,6 +66,16 @@
66 .video-info-channel { 66 .video-info-channel {
67 font-weight: $font-semibold; 67 font-weight: $font-semibold;
68 font-size: 15px; 68 font-size: 15px;
69
70 a {
71 @include disable-default-a-behaviour;
72
73 color: #000;
74
75 &:hover {
76 opacity: 0.8;
77 }
78 }
69 } 79 }
70 80
71 .video-info-by a { 81 .video-info-by a {