From 87e0b71d36ae3d8f098c2be0ab45a29c9f2854b4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 22 Apr 2021 12:00:23 +0200 Subject: [PATCH] Add go-live example for plugin form fields --- shared/models/plugins/register-client-form-field.model.ts | 2 +- support/doc/plugins/guide.md | 2 +- 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 = { } export interface RegisterClientVideoFieldOptions { - type: 'import-url' | 'import-torrent' | 'update' | 'upload' + type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live' } 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 }) { default: '' } - for (const type of [ 'upload', 'import-url', 'import-torrent', 'update' ]) { + for (const type of [ 'upload', 'import-url', 'import-torrent', 'update', 'go-live' ]) { registerVideoField(commonOptions, { type }) } }