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

27 lines
572 B
TypeScript
Raw Normal View History

import { Component, Input, ViewChild } from '@angular/core'
import { ModalDirective } from 'ngx-bootstrap/modal'
2017-12-01 17:56:26 +00:00
import { VideoDetails } from '../../shared/video/video-details.model'
@Component({
selector: 'my-video-download',
templateUrl: './video-download.component.html',
2017-12-07 09:27:33 +00:00
styleUrls: [ './video-download.component.scss' ]
})
export class VideoDownloadComponent {
2017-10-25 14:43:19 +00:00
@Input() video: VideoDetails = null
@ViewChild('modal') modal: ModalDirective
constructor () {
// empty
}
show () {
this.modal.show()
}
hide () {
this.modal.hide()
}
}