]>
Commit | Line | Data |
---|---|---|
df98563e | 1 | import { Component, Input, ViewChild } from '@angular/core' |
df98563e | 2 | import { ModalDirective } from 'ngx-bootstrap/modal' |
202f6b6c | 3 | import { VideoDetails } from '../../shared/video/video-details.model' |
cf02fbfb C |
4 | |
5 | @Component({ | |
a96aed15 C |
6 | selector: 'my-video-download', |
7 | templateUrl: './video-download.component.html', | |
8 | styles: [ '.resolution-block { margin-top: 20px; }' ] | |
cf02fbfb | 9 | }) |
a96aed15 | 10 | export class VideoDownloadComponent { |
404b54e1 | 11 | @Input() video: VideoDetails = null |
cf02fbfb | 12 | |
df98563e | 13 | @ViewChild('modal') modal: ModalDirective |
cf02fbfb | 14 | |
df98563e | 15 | constructor () { |
cf02fbfb C |
16 | // empty |
17 | } | |
18 | ||
df98563e C |
19 | show () { |
20 | this.modal.show() | |
cf02fbfb C |
21 | } |
22 | ||
df98563e C |
23 | hide () { |
24 | this.modal.hide() | |
cf02fbfb C |
25 | } |
26 | } |