aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-22 12:00:23 +0200
committerChocobozzz <me@florianbigard.com>2021-04-22 12:00:23 +0200
commit87e0b71d36ae3d8f098c2be0ab45a29c9f2854b4 (patch)
tree27a776ff5a1cab4bf976e377a734e3be5c374f25
parent096231d00e766c5d45e8975f4cec21c41a50ec2e (diff)
downloadPeerTube-87e0b71d36ae3d8f098c2be0ab45a29c9f2854b4.tar.gz
PeerTube-87e0b71d36ae3d8f098c2be0ab45a29c9f2854b4.tar.zst
PeerTube-87e0b71d36ae3d8f098c2be0ab45a29c9f2854b4.zip
Add go-live example for plugin form fields
-rw-r--r--shared/models/plugins/register-client-form-field.model.ts2
-rw-r--r--support/doc/plugins/guide.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared/models/plugins/register-client-form-field.model.ts b/shared/models/plugins/register-client-form-field.model.ts
index cdcdaa181..db61dbc88 100644
--- a/shared/models/plugins/register-client-form-field.model.ts
+++ b/shared/models/plugins/register-client-form-field.model.ts
@@ -16,5 +16,5 @@ export type RegisterClientFormFieldOptions = {
16} 16}
17 17
18export interface RegisterClientVideoFieldOptions { 18export interface RegisterClientVideoFieldOptions {
19 type: 'import-url' | 'import-torrent' | 'update' | 'upload' 19 type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live'
20} 20}
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md
index a90f8e72b..ca951c781 100644
--- a/support/doc/plugins/guide.md
+++ b/support/doc/plugins/guide.md
@@ -626,7 +626,7 @@ async function register ({ registerVideoField, peertubeHelpers }) {
626 default: '' 626 default: ''
627 } 627 }
628 628
629 for (const type of [ 'upload', 'import-url', 'import-torrent', 'update' ]) { 629 for (const type of [ 'upload', 'import-url', 'import-torrent', 'update', 'go-live' ]) {
630 registerVideoField(commonOptions, { type }) 630 registerVideoField(commonOptions, { type })
631 } 631 }
632} 632}