aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-download.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos/+video-watch/video-download.component.ts')
-rw-r--r--client/src/app/videos/+video-watch/video-download.component.ts28
1 files changed, 28 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-watch/video-download.component.ts b/client/src/app/videos/+video-watch/video-download.component.ts
new file mode 100644
index 000000000..22149aa6b
--- /dev/null
+++ b/client/src/app/videos/+video-watch/video-download.component.ts
@@ -0,0 +1,28 @@
1import { Component, Input, ViewChild } from '@angular/core'
2
3import { ModalDirective } from 'ngx-bootstrap/modal'
4
5import { Video } from '../shared'
6
7@Component({
8 selector: 'my-video-download',
9 templateUrl: './video-download.component.html',
10 styles: [ '.resolution-block { margin-top: 20px; }' ]
11})
12export class VideoDownloadComponent {
13 @Input() video: Video = null
14
15 @ViewChild('modal') modal: ModalDirective
16
17 constructor () {
18 // empty
19 }
20
21 show () {
22 this.modal.show()
23 }
24
25 hide () {
26 this.modal.hide()
27 }
28}