1
0
Fork 0
peertube/client/src/app/videos/+video-watch/video-download.component.ts

29 lines
550 B
TypeScript
Raw Normal View History

import { Component, Input, ViewChild } from '@angular/core'
import { ModalDirective } from 'ngx-bootstrap/modal'
2017-10-25 10:43:19 -04:00
import { VideoDetails } from '../shared'
@Component({
selector: 'my-video-download',
templateUrl: './video-download.component.html',
styles: [ '.resolution-block { margin-top: 20px; }' ]
})
export class VideoDownloadComponent {
2017-10-25 10:43:19 -04:00
@Input() video: VideoDetails = null
@ViewChild('modal') modal: ModalDirective
constructor () {
// empty
}
show () {
this.modal.show()
}
hide () {
this.modal.hide()
}
}