aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-download.component.ts
blob: 095df16989f4eaa57da851f7c97e2a484fd16a24 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                           
                                                    
                                                                     

            

                                                 
                                                  
  
                                     
                                     
 
                                           
 
                  


            

                     

   

                     

   
import { Component, Input, ViewChild } from '@angular/core'
import { ModalDirective } from 'ngx-bootstrap/modal'
import { VideoDetails } from '../../shared/video/video-details.model'

@Component({
  selector: 'my-video-download',
  templateUrl: './video-download.component.html',
  styleUrls: [ './video-download.component.scss' ]
})
export class VideoDownloadComponent {
  @Input() video: VideoDetails = null

  @ViewChild('modal') modal: ModalDirective

  constructor () {
    // empty
  }

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

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