]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-main/account/video-avatar-channel.component.ts
Fix circular dep issue
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-main / account / video-avatar-channel.component.ts
CommitLineData
c2caa99b
RK
1import { Component, Input, OnInit } from '@angular/core'
2import { Video } from '../video/video.model'
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
c2caa99b 13 @Input() size: 'md' | 'sm' = 'md'
b40a2193 14 @Input() genericChannel: boolean
c2caa99b
RK
15
16 channelLinkTitle = ''
17 accountLinkTitle = ''
18
c2caa99b 19 ngOnInit () {
66357162
C
20 this.channelLinkTitle = $localize`${this.video.account.name} (channel page)`
21 this.accountLinkTitle = $localize`${this.video.byAccount} (account page)`
c2caa99b 22 }
b40a2193
K
23
24 isChannelAvatarNull () {
25 return this.video.channel.avatar === null
26 }
dd4f25ee 27}