]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-download.component.ts
Redirect to uuid video route after upload
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-download.component.ts
CommitLineData
df98563e 1import { Component, Input, ViewChild } from '@angular/core'
df98563e 2import { ModalDirective } from 'ngx-bootstrap/modal'
202f6b6c 3import { 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',
0727cab0 8 styleUrls: [ './video-download.component.scss' ]
cf02fbfb 9})
a96aed15 10export 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}