]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts
Try to improve permanent live label
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / video-add-components / video-go-live.component.ts
index 1b9447e03343641effbfc2dc60aaafe1382d84e0..ee7011b4c1a5d5bb3bb7f24692de41ba746424a3 100644 (file)
@@ -26,8 +26,11 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView
   isInUpdateForm = false
 
   liveVideo: LiveVideo
+
   videoId: number
   videoUUID: string
+  videoShortUUID: string
+
   error: string
 
   constructor (
@@ -67,6 +70,8 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView
       waitTranscoding: true,
       commentsEnabled: true,
       downloadEnabled: true,
+      permanentLive: false,
+      saveReplay: false,
       channelId: this.firstStepChannelId
     }
 
@@ -79,6 +84,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView
         next: res => {
           this.videoId = res.video.id
           this.videoUUID = res.video.uuid
+          this.videoShortUUID = res.video.shortUUID
           this.isInUpdateForm = true
 
           this.firstStepDone.emit(name)
@@ -113,6 +119,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView
     video.patch(this.form.value)
     video.id = this.videoId
     video.uuid = this.videoUUID
+    video.shortUUID = this.videoShortUUID
 
     const liveVideoUpdate: LiveVideoUpdate = {
       saveReplay: this.form.value.saveReplay,