Add go-live example for plugin form fields

This commit is contained in:
Chocobozzz 2021-04-22 12:00:23 +02:00
parent 096231d00e
commit 87e0b71d36
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 2 deletions

View File

@ -16,5 +16,5 @@ export type RegisterClientFormFieldOptions = {
} }
export interface RegisterClientVideoFieldOptions { export interface RegisterClientVideoFieldOptions {
type: 'import-url' | 'import-torrent' | 'update' | 'upload' type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live'
} }

View File

@ -626,7 +626,7 @@ async function register ({ registerVideoField, peertubeHelpers }) {
default: '' 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 }) registerVideoField(commonOptions, { type })
} }
} }