]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/video-watch/video-magnet.component.ts
Client: try to be responsive
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / video-watch / video-magnet.component.ts
CommitLineData
cf02fbfb
C
1import { Component, Input, ViewChild } from '@angular/core';
2
ad42bea3 3import { ModalDirective } from 'ngx-bootstrap/modal';
cf02fbfb
C
4
5import { Video } from '../shared';
6
7@Component({
8 selector: 'my-video-magnet',
9 templateUrl: './video-magnet.component.html'
10})
11export 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}