]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/video-download.component.ts
Fix tag display on video watch
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-download.component.ts
1 import { Component, Input, ViewChild } from '@angular/core'
2
3 import { ModalDirective } from 'ngx-bootstrap/modal'
4
5 import { VideoDetails } from '../shared'
6
7 @Component({
8 selector: 'my-video-download',
9 templateUrl: './video-download.component.html',
10 styles: [ '.resolution-block { margin-top: 20px; }' ]
11 })
12 export class VideoDownloadComponent {
13 @Input() video: VideoDetails = 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 }