From 58e735dd77a4ea8fc9e8da3b54fd338bf9e3558b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Mar 2023 15:08:56 +0100 Subject: Add test on AP hooks --- client/src/app/+videos/+video-edit/shared/video-edit.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/+videos/+video-edit') 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 { this.schedulerInterval = setInterval(() => this.minScheduledDate = new Date(), 1000 * 60) // Update every minute }) - const updateForm = (values: any) => { + const updateFormForPlugins = (values: any) => { this.form.patchValue(values) this.cd.detectChanges() } - this.hooks.runAction('action:video-edit.init', 'video-edit', { type: this.type, updateForm }) + this.hooks.runAction('action:video-edit.init', 'video-edit', { type: this.type, updateForm: updateFormForPlugins }) this.form.valueChanges.subscribe(() => { this.hooks.runAction('action:video-edit.form.updated', 'video-edit', { type: this.type, formValues: this.form.value }) -- cgit v1.2.3