aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-tables/video-cell.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-tables/video-cell.component.ts')
-rw-r--r--client/src/app/shared/shared-tables/video-cell.component.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-tables/video-cell.component.ts b/client/src/app/shared/shared-tables/video-cell.component.ts
new file mode 100644
index 000000000..62984180d
--- /dev/null
+++ b/client/src/app/shared/shared-tables/video-cell.component.ts
@@ -0,0 +1,15 @@
1import { Component, Input } from '@angular/core'
2import { Video } from '@app/shared/shared-main'
3
4@Component({
5 selector: 'my-video-cell',
6 styleUrls: [ 'video-cell.component.scss' ],
7 templateUrl: 'video-cell.component.html'
8})
9export class VideoCellComponent {
10 @Input() video: Video
11
12 getVideoUrl () {
13 return Video.buildWatchUrl(this.video)
14 }
15}