diff options
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts | 5 | ||||
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts index 1b9447e03..2065e4e8e 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts | |||
@@ -26,8 +26,11 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView | |||
26 | isInUpdateForm = false | 26 | isInUpdateForm = false |
27 | 27 | ||
28 | liveVideo: LiveVideo | 28 | liveVideo: LiveVideo |
29 | |||
29 | videoId: number | 30 | videoId: number |
30 | videoUUID: string | 31 | videoUUID: string |
32 | videoShortUUID: string | ||
33 | |||
31 | error: string | 34 | error: string |
32 | 35 | ||
33 | constructor ( | 36 | constructor ( |
@@ -79,6 +82,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView | |||
79 | next: res => { | 82 | next: res => { |
80 | this.videoId = res.video.id | 83 | this.videoId = res.video.id |
81 | this.videoUUID = res.video.uuid | 84 | this.videoUUID = res.video.uuid |
85 | this.videoShortUUID = res.video.shortUUID | ||
82 | this.isInUpdateForm = true | 86 | this.isInUpdateForm = true |
83 | 87 | ||
84 | this.firstStepDone.emit(name) | 88 | this.firstStepDone.emit(name) |
@@ -113,6 +117,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView | |||
113 | video.patch(this.form.value) | 117 | video.patch(this.form.value) |
114 | video.id = this.videoId | 118 | video.id = this.videoId |
115 | video.uuid = this.videoUUID | 119 | video.uuid = this.videoUUID |
120 | video.shortUUID = this.videoShortUUID | ||
116 | 121 | ||
117 | const liveVideoUpdate: LiveVideoUpdate = { | 122 | const liveVideoUpdate: LiveVideoUpdate = { |
118 | saveReplay: this.form.value.saveReplay, | 123 | saveReplay: this.form.value.saveReplay, |
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' | |||
7 | import { FormValidatorService } from '@app/shared/shared-forms' | 7 | import { FormValidatorService } from '@app/shared/shared-forms' |
8 | import { BytesPipe, Video, VideoCaptionService, VideoEdit, VideoService } from '@app/shared/shared-main' | 8 | import { BytesPipe, Video, VideoCaptionService, VideoEdit, VideoService } from '@app/shared/shared-main' |
9 | import { LoadingBarService } from '@ngx-loading-bar/core' | 9 | import { LoadingBarService } from '@ngx-loading-bar/core' |
10 | import { HttpStatusCode, VideoPrivacy } from '@shared/models' | 10 | import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models' |
11 | import { UploaderXFormData } from './uploaderx-form-data' | 11 | import { UploaderXFormData } from './uploaderx-form-data' |
12 | import { VideoSend } from './video-send' | 12 | import { 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 | ||