aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-download.component.ts
blob: 22149aa6be6622c973abf2be3e15782a5520a8e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { Component, Input, ViewChild } from '@angular/core'

import { ModalDirective } from 'ngx-bootstrap/modal'

import { Video } from '../shared'

@Component({
  selector: 'my-video-download',
  templateUrl: './video-download.component.html',
  styles: [ '.resolution-block { margin-top: 20px; }' ]
})
export class VideoDownloadComponent {
  @Input() video: Video = null

  @ViewChild('modal') modal: ModalDirective

  constructor () {
    // empty
  }

  show () {
    this.modal.show()
  }

  hide () {
    this.modal.hide()
  }
}