]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/video-avatar-channel.component.ts
Merge remote-tracking branch 'weblate/develop' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / video-avatar-channel.component.ts
CommitLineData
c2caa99b 1import { Component, Input, OnInit } from '@angular/core'
cdeddff1 2import { Video } from '@app/shared/shared-main/video'
dd4f25ee
RK
3
4@Component({
69524f6e
C
5 selector: 'my-video-avatar-channel',
6 templateUrl: './video-avatar-channel.component.html',
7 styleUrls: [ './video-avatar-channel.component.scss' ]
dd4f25ee 8})
69524f6e 9export class VideoAvatarChannelComponent implements OnInit {
c2caa99b 10 @Input() video: Video
69524f6e
C
11 @Input() byAccount: string
12
b40a2193 13 @Input() genericChannel: boolean
c2caa99b
RK
14
15 channelLinkTitle = ''
16 accountLinkTitle = ''
17
c2caa99b 18 ngOnInit () {
66357162
C
19 this.channelLinkTitle = $localize`${this.video.account.name} (channel page)`
20 this.accountLinkTitle = $localize`${this.video.byAccount} (account page)`
c2caa99b 21 }
b40a2193
K
22
23 isChannelAvatarNull () {
24 return this.video.channel.avatar === null
25 }
dd4f25ee 26}