isUploadingVideo = false
videoUploaded = false
videoUploadPercents = 0
- videoUploadedId = 0
+ videoUploadedIds = {
+ id: 0,
+ uuid: ''
+ }
error: string = null
form: FormGroup
this.videoUploaded = true
- this.videoUploadedId = event.body.video.id
+ this.videoUploadedIds = event.body.video
}
},
const video = new VideoEdit()
video.patch(this.form.value)
video.channel = this.firstStepChannelId
- video.id = this.videoUploadedId
+ video.id = this.videoUploadedIds.id
+ video.uuid = this.videoUploadedIds.uuid
this.videoService.updateVideo(video)
.subscribe(
() => {
this.notificationsService.success('Success', 'Video published.')
- this.router.navigate([ '/videos/watch', video.id ])
+ this.router.navigate([ '/videos/watch', video.uuid ])
},
err => {