1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Enhance plugin video fields

Add video form tab selection
Add ability to display an error
This commit is contained in:
Chocobozzz 2021-12-22 18:02:36 +01:00
parent 61cc1c03bf
commit 3c065fe3b3
No known key found for this signature in database
GPG key ID: 583A612D890159BE
13 changed files with 229 additions and 35 deletions

View file

@ -16,8 +16,15 @@ export type RegisterClientFormFieldOptions = {
// Not supported by plugin setting registration, use registerSettingsScript instead
hidden?: (options: any) => boolean
// Return undefined | null if there is no error or return a string with the detailed error
// Not supported by plugin setting registration
error?: (options: any) => { error: boolean, text?: string }
}
export interface RegisterClientVideoFieldOptions {
type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live'
// Default to 'plugin-settings'
tab?: 'main' | 'plugin-settings'
}