diff options
author | Chocobozzz <me@florianbigard.com> | 2023-03-10 15:08:56 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-03-10 15:19:33 +0100 |
commit | 96d00a997b9847f6796c02dbff01bca2c99385c6 (patch) | |
tree | db3048042f83b0b5f529bdb4723f1f99202c3a96 /client | |
parent | 866b5d3f5230204d611a556260102996c1aefe10 (diff) | |
download | PeerTube-96d00a997b9847f6796c02dbff01bca2c99385c6.tar.gz PeerTube-96d00a997b9847f6796c02dbff01bca2c99385c6.tar.zst PeerTube-96d00a997b9847f6796c02dbff01bca2c99385c6.zip |
Add test on AP hooks
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/+videos/+video-edit/shared/video-edit.component.ts | 4 |
1 files changed, 2 insertions, 2 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 e3bd5fe71..2bc0e6bb4 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 | |||
@@ -240,11 +240,11 @@ export class VideoEditComponent implements OnInit, OnDestroy { | |||
240 | this.schedulerInterval = setInterval(() => this.minScheduledDate = new Date(), 1000 * 60) // Update every minute | 240 | this.schedulerInterval = setInterval(() => this.minScheduledDate = new Date(), 1000 * 60) // Update every minute |
241 | }) | 241 | }) |
242 | 242 | ||
243 | const updateForm = (values: any) => { | 243 | const updateFormForPlugins = (values: any) => { |
244 | this.form.patchValue(values) | 244 | this.form.patchValue(values) |
245 | this.cd.detectChanges() | 245 | this.cd.detectChanges() |
246 | } | 246 | } |
247 | this.hooks.runAction('action:video-edit.init', 'video-edit', { type: this.type, updateForm }) | 247 | this.hooks.runAction('action:video-edit.init', 'video-edit', { type: this.type, updateForm: updateFormForPlugins }) |
248 | 248 | ||
249 | this.form.valueChanges.subscribe(() => { | 249 | this.form.valueChanges.subscribe(() => { |
250 | this.hooks.runAction('action:video-edit.form.updated', 'video-edit', { type: this.type, formValues: this.form.value }) | 250 | this.hooks.runAction('action:video-edit.form.updated', 'video-edit', { type: this.type, formValues: this.form.value }) |