aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-03-10 15:08:56 +0100
committerChocobozzz <me@florianbigard.com>2023-03-10 15:45:52 +0100
commit58e735dd77a4ea8fc9e8da3b54fd338bf9e3558b (patch)
treeeb2f315096e8013ec684438130639f6251110f5f /client/src
parent3b504f6ed4e890bebb46d0481aba15b43050323a (diff)
downloadPeerTube-58e735dd77a4ea8fc9e8da3b54fd338bf9e3558b.tar.gz
PeerTube-58e735dd77a4ea8fc9e8da3b54fd338bf9e3558b.tar.zst
PeerTube-58e735dd77a4ea8fc9e8da3b54fd338bf9e3558b.zip
Add test on AP hooks
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+videos/+video-edit/shared/video-edit.component.ts4
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 })