]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/video-magnet.component.ts
Video blacklist refractoring
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-magnet.component.ts
1 import { Component, Input, ViewChild } from '@angular/core'
2
3 import { ModalDirective } from 'ngx-bootstrap/modal'
4
5 import { Video } from '../shared'
6
7 @Component({
8 selector: 'my-video-magnet',
9 templateUrl: './video-magnet.component.html'
10 })
11 export class VideoMagnetComponent {
12 @Input() video: Video = null
13
14 @ViewChild('modal') modal: ModalDirective
15
16 constructor () {
17 // empty
18 }
19
20 show () {
21 this.modal.show()
22 }
23
24 hide () {
25 this.modal.hide()
26 }
27 }