aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-tables/video-cell.component.ts
blob: 62984180d2f8fcb4a88e6e8ef142995e376f71bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
  }
}