blob: 4bfc7bd9d782e7841439950ff1094bead9b82db8 (
plain) (
tree)
|
|
import { Component, Input, OnInit } from '@angular/core'
import { Video } from '@app/shared/shared-main/video'
@Component({
selector: 'my-video-avatar-channel',
templateUrl: './video-avatar-channel.component.html',
styleUrls: [ './video-avatar-channel.component.scss' ]
})
export class VideoAvatarChannelComponent implements OnInit {
@Input() video: Video
@Input() byAccount: string
@Input() showAccount: boolean
@Input() showChannel: boolean
channelLinkTitle = ''
accountLinkTitle = ''
ngOnInit () {
this.channelLinkTitle = $localize`${this.video.account.name} (channel page)`
this.accountLinkTitle = $localize`${this.video.byAccount} (account page)`
}
}
|