aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-watch/video-magnet.component.ts
blob: 894fa45fc43715b79eb4923df736eb390a69693b (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
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();
  }
}