PeerTube/client/src/app/shared/shared-tables/video-cell.component.ts

16 lines
359 B
TypeScript
Raw Normal View History

2021-10-27 11:42:05 +02:00
import { Component, Input } from '@angular/core'
import { Video } from '@app/shared/shared-main'
@Component({
selector: 'my-video-cell',
styleUrls: [ 'video-cell.component.scss' ],
templateUrl: 'video-cell.component.html'
})
export class VideoCellComponent {
@Input() video: Video
getVideoUrl () {
return Video.buildWatchUrl(this.video)
}
}