diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-20 16:18:16 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-21 15:39:51 +0200 |
commit | 7294aab0c879ef96c0fde15c389a2c4c1463d3c7 (patch) | |
tree | bad1176720ee04266eba5470e9956e3a7871e349 /client/src/app/+videos/+video-edit/video-update.component.ts | |
parent | f95628636b6ccdf3eae2449ca718e075b072f678 (diff) | |
download | PeerTube-7294aab0c879ef96c0fde15c389a2c4c1463d3c7.tar.gz PeerTube-7294aab0c879ef96c0fde15c389a2c4c1463d3c7.tar.zst PeerTube-7294aab0c879ef96c0fde15c389a2c4c1463d3c7.zip |
Add ability to set custom field to video form
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-update.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-update.component.ts | 8 |
1 files changed, 8 insertions, 0 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 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 { | |||
126 | ) | 126 | ) |
127 | } | 127 | } |
128 | 128 | ||
129 | hydratePluginFieldsFromVideo () { | ||
130 | if (!this.video.pluginData) return | ||
131 | |||
132 | this.form.patchValue({ | ||
133 | pluginData: this.video.pluginData | ||
134 | }) | ||
135 | } | ||
136 | |||
129 | private hydrateFormFromVideo () { | 137 | private hydrateFormFromVideo () { |
130 | this.form.patchValue(this.video.toFormPatch()) | 138 | this.form.patchValue(this.video.toFormPatch()) |
131 | 139 | ||