aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-18 11:39:45 +0200
committerChocobozzz <me@florianbigard.com>2021-08-18 11:39:45 +0200
commit2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8 (patch)
tree2f935cfe607726b39404e620e0d5d0c43e55c1f9 /client/src/app/+videos
parent586a7478b609ed4b7518419e91f0a799c23fbaa1 (diff)
downloadPeerTube-2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8.tar.gz
PeerTube-2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8.tar.zst
PeerTube-2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8.zip
Fix live/upload redirection
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r--client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts5
-rw-r--r--client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts8
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'
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