diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-26 15:41:51 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-26 15:41:51 +0100 |
commit | 5d84d717b246e7f6bed998481c817dc29e5c4948 (patch) | |
tree | 1bfb7d15b09a93f2fe23dc2f388418b95d774d08 /client/src/app | |
parent | fd0fdc46961ff9aa5c04e1c73b9b4e5e0cbbda8b (diff) | |
download | PeerTube-5d84d717b246e7f6bed998481c817dc29e5c4948.tar.gz PeerTube-5d84d717b246e7f6bed998481c817dc29e5c4948.tar.zst PeerTube-5d84d717b246e7f6bed998481c817dc29e5c4948.zip |
Force update live boolean
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-update.component.ts | 7 |
1 files changed, 2 insertions, 5 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 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 { | |||
137 | if (!this.liveVideo) return of(undefined) | 137 | if (!this.liveVideo) return of(undefined) |
138 | 138 | ||
139 | const liveVideoUpdate: LiveVideoUpdate = { | 139 | const liveVideoUpdate: LiveVideoUpdate = { |
140 | saveReplay: this.form.value.saveReplay, | 140 | saveReplay: !!this.form.value.saveReplay, |
141 | permanentLive: this.form.value.permanentLive | 141 | permanentLive: !!this.form.value.permanentLive |
142 | } | 142 | } |
143 | 143 | ||
144 | console.log(liveVideoUpdate) | ||
145 | console.log(this.form.value) | ||
146 | |||
147 | // Don't update live attributes if they did not change | 144 | // Don't update live attributes if they did not change |
148 | const liveChanged = Object.keys(liveVideoUpdate) | 145 | const liveChanged = Object.keys(liveVideoUpdate) |
149 | .some(key => this.liveVideo[key] !== liveVideoUpdate[key]) | 146 | .some(key => this.liveVideo[key] !== liveVideoUpdate[key]) |