X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-edit%2Fvideo-update.component.ts;h=654901798b8050641af6c4923d29eaee092ad20b;hb=5d84d717b246e7f6bed998481c817dc29e5c4948;hp=f27ebd20e5da238941faf21a831ac098b9041abf;hpb=fd0fdc46961ff9aa5c04e1c73b9b4e5e0cbbda8b;p=github%2FChocobozzz%2FPeerTube.git 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 f27ebd20e..654901798 100644 --- a/client/src/app/+videos/+video-edit/video-update.component.ts +++ b/client/src/app/+videos/+video-edit/video-update.component.ts @@ -137,13 +137,10 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { if (!this.liveVideo) return of(undefined) const liveVideoUpdate: LiveVideoUpdate = { - saveReplay: this.form.value.saveReplay, - permanentLive: this.form.value.permanentLive + saveReplay: !!this.form.value.saveReplay, + permanentLive: !!this.form.value.permanentLive } - console.log(liveVideoUpdate) - console.log(this.form.value) - // Don't update live attributes if they did not change const liveChanged = Object.keys(liveVideoUpdate) .some(key => this.liveVideo[key] !== liveVideoUpdate[key])