VIDEO_CHANNEL_SUPPORT
} from '@app/shared/forms/form-validators/video-channel'
import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
+import { AuthService } from '@app/core'
@Component({
selector: 'my-account-video-channel-create',
}
constructor (
+ private authService: AuthService,
private notificationsService: NotificationsService,
private router: Router,
private formBuilder: FormBuilder,
this.videoChannelService.createVideoChannel(videoChannelCreate).subscribe(
() => {
+ this.authService.refreshUserInformation()
this.notificationsService.success('Success', `Video channel ${videoChannelCreate.displayName} created.`)
this.router.navigate([ '/my-account', 'video-channels' ])
},
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',
private paramsSub: Subscription
constructor (
+ private authService: AuthService,
private notificationsService: NotificationsService,
private router: Router,
private route: ActivatedRoute,
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' ])
},
</div>
<div class="video-info-channel">
- {{ video.channel.displayName }}
+ <a [routerLink]="[ '/video-channels', video.channel.id ]" title="Go the channel page">
+ {{ video.channel.displayName }}
+ </a>
<!-- Here will be the subscribe button -->
</div>
.video-info-channel {
font-weight: $font-semibold;
font-size: 15px;
+
+ a {
+ @include disable-default-a-behaviour;
+
+ color: #000;
+
+ &:hover {
+ opacity: 0.8;
+ }
+ }
}
.video-info-by a {