diff options
Diffstat (limited to 'client/src/app/+videos/+video-edit/shared')
-rw-r--r-- | client/src/app/+videos/+video-edit/shared/video-edit.component.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts index a2399eafb..16b964482 100644 --- a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts +++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts | |||
@@ -180,7 +180,6 @@ export class VideoEditComponent implements OnInit, OnDestroy { | |||
180 | 180 | ||
181 | this.trackChannelChange() | 181 | this.trackChannelChange() |
182 | this.trackPrivacyChange() | 182 | this.trackPrivacyChange() |
183 | this.trackLivePermanentFieldChange() | ||
184 | 183 | ||
185 | this.formBuilt.emit() | 184 | this.formBuilt.emit() |
186 | } | 185 | } |
@@ -457,24 +456,6 @@ export class VideoEditComponent implements OnInit, OnDestroy { | |||
457 | ) | 456 | ) |
458 | } | 457 | } |
459 | 458 | ||
460 | private trackLivePermanentFieldChange () { | ||
461 | // We will update the "support" field depending on the channel | ||
462 | this.form.controls['permanentLive'] | ||
463 | .valueChanges | ||
464 | .subscribe( | ||
465 | permanentLive => { | ||
466 | const saveReplayControl = this.form.controls['saveReplay'] | ||
467 | |||
468 | if (permanentLive === true) { | ||
469 | saveReplayControl.setValue(false) | ||
470 | saveReplayControl.disable() | ||
471 | } else { | ||
472 | saveReplayControl.enable() | ||
473 | } | ||
474 | } | ||
475 | ) | ||
476 | } | ||
477 | |||
478 | private updateSupportField (support: string) { | 459 | private updateSupportField (support: string) { |
479 | return this.form.patchValue({ support: support || '' }) | 460 | return this.form.patchValue({ support: support || '' }) |
480 | } | 461 | } |