aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/videos/video-watch/video-magnet.component.ts
blob: f9432e92cccaffc9049c814a103fa8ebb25d836a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                           
 
                                                    
 
                                 





                                              
                              
 
                                           
 
                  


            

                     

   

                     

   
import { Component, Input, ViewChild } from '@angular/core'

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

import { Video } from '../shared'

@Component({
  selector: 'my-video-magnet',
  templateUrl: './video-magnet.component.html'
})
export class VideoMagnetComponent {
  @Input() video: Video = null

  @ViewChild('modal') modal: ModalDirective

  constructor () {
    // empty
  }

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

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