From 7294aab0c879ef96c0fde15c389a2c4c1463d3c7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 20 Aug 2020 16:18:16 +0200 Subject: Add ability to set custom field to video form --- client/src/app/+videos/+video-edit/video-update.component.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/src/app/+videos/+video-edit/video-update.component.ts') 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 2e1d0f89d..20438a2d3 100644 --- a/client/src/app/+videos/+video-edit/video-update.component.ts +++ b/client/src/app/+videos/+video-edit/video-update.component.ts @@ -126,6 +126,14 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { ) } + hydratePluginFieldsFromVideo () { + if (!this.video.pluginData) return + + this.form.patchValue({ + pluginData: this.video.pluginData + }) + } + private hydrateFormFromVideo () { this.form.patchValue(this.video.toFormPatch()) -- cgit v1.2.3