aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts')
-rw-r--r--client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts
index dee2bb57a..56051cf4c 100644
--- a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts
+++ b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts
@@ -7,7 +7,7 @@ import { genericUploadErrorHandler, scrollToTop } from '@app/helpers'
7import { FormValidatorService } from '@app/shared/shared-forms' 7import { FormValidatorService } from '@app/shared/shared-forms'
8import { BytesPipe, Video, VideoCaptionService, VideoEdit, VideoService } from '@app/shared/shared-main' 8import { BytesPipe, Video, VideoCaptionService, VideoEdit, VideoService } from '@app/shared/shared-main'
9import { LoadingBarService } from '@ngx-loading-bar/core' 9import { LoadingBarService } from '@ngx-loading-bar/core'
10import { HttpStatusCode, VideoPrivacy } from '@shared/models' 10import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models'
11import { UploaderXFormData } from './uploaderx-form-data' 11import { UploaderXFormData } from './uploaderx-form-data'
12import { VideoSend } from './video-send' 12import { VideoSend } from './video-send'
13 13
@@ -33,9 +33,10 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
33 33
34 videoUploaded = false 34 videoUploaded = false
35 videoUploadPercents = 0 35 videoUploadPercents = 0
36 videoUploadedIds = { 36 videoUploadedIds: VideoCreateResult = {
37 id: 0, 37 id: 0,
38 uuid: '' 38 uuid: '',
39 shortUUID: ''
39 } 40 }
40 formData: FormData 41 formData: FormData
41 42
@@ -237,6 +238,7 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
237 video.patch(this.form.value) 238 video.patch(this.form.value)
238 video.id = this.videoUploadedIds.id 239 video.id = this.videoUploadedIds.id
239 video.uuid = this.videoUploadedIds.uuid 240 video.uuid = this.videoUploadedIds.uuid
241 video.shortUUID = this.videoUploadedIds.shortUUID
240 242
241 this.isUpdatingVideo = true 243 this.isUpdatingVideo = true
242 244