aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-download.component.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-19 14:58:28 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-19 14:58:28 +0200
commita96aed15188174c50885dda0df3164a67295e11f (patch)
tree7e3941324614e52a2f6ab7755224ab8ae8f8c19f /client/src/app/videos/+video-watch/video-download.component.ts
parentbda65bdc9f3ce7d4b6e97cb9afaca25b71added3 (diff)
downloadPeerTube-a96aed15188174c50885dda0df3164a67295e11f.tar.gz
PeerTube-a96aed15188174c50885dda0df3164a67295e11f.tar.zst
PeerTube-a96aed15188174c50885dda0df3164a67295e11f.zip
Add ability to download a video from direct link or torrent file
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}