aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/video-update.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-update.component.ts')
-rw-r--r--client/src/app/+videos/+video-edit/video-update.component.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-edit/video-update.component.ts b/client/src/app/+videos/+video-edit/video-update.component.ts
index b70270261..ad71162b8 100644
--- a/client/src/app/+videos/+video-edit/video-update.component.ts
+++ b/client/src/app/+videos/+video-edit/video-update.component.ts
@@ -127,9 +127,14 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
127 switchMap(() => { 127 switchMap(() => {
128 if (!this.liveVideo) return of(undefined) 128 if (!this.liveVideo) return of(undefined)
129 129
130 const saveReplay = !!this.form.value.saveReplay
131 const replaySettings = saveReplay
132 ? { privacy: this.form.value.replayPrivacy }
133 : undefined
134
130 const liveVideoUpdate: LiveVideoUpdate = { 135 const liveVideoUpdate: LiveVideoUpdate = {
131 saveReplay: !!this.form.value.saveReplay, 136 saveReplay,
132 replaySettings: { privacy: this.form.value.replayPrivacy }, 137 replaySettings,
133 permanentLive: !!this.form.value.permanentLive, 138 permanentLive: !!this.form.value.permanentLive,
134 latencyMode: this.form.value.latencyMode 139 latencyMode: this.form.value.latencyMode
135 } 140 }