Force update live boolean
This commit is contained in:
parent
fd0fdc4696
commit
5d84d717b2
|
@ -137,13 +137,10 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
|
||||||
if (!this.liveVideo) return of(undefined)
|
if (!this.liveVideo) return of(undefined)
|
||||||
|
|
||||||
const liveVideoUpdate: LiveVideoUpdate = {
|
const liveVideoUpdate: LiveVideoUpdate = {
|
||||||
saveReplay: this.form.value.saveReplay,
|
saveReplay: !!this.form.value.saveReplay,
|
||||||
permanentLive: this.form.value.permanentLive
|
permanentLive: !!this.form.value.permanentLive
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(liveVideoUpdate)
|
|
||||||
console.log(this.form.value)
|
|
||||||
|
|
||||||
// Don't update live attributes if they did not change
|
// Don't update live attributes if they did not change
|
||||||
const liveChanged = Object.keys(liveVideoUpdate)
|
const liveChanged = Object.keys(liveVideoUpdate)
|
||||||
.some(key => this.liveVideo[key] !== liveVideoUpdate[key])
|
.some(key => this.liveVideo[key] !== liveVideoUpdate[key])
|
||||||
|
|
Loading…
Reference in New Issue