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:
parent
61cc1c03bf
commit
3c065fe3b3
13 changed files with 229 additions and 35 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue