]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/plugins/client/register-client-form-field.model.ts
Enhance plugin video fields
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / client / register-client-form-field.model.ts
index 2df071337a1c5ee347eb33cabb9e56c3eb604ec0..30fd632669894e3b52c63c8b7fd6281b31e655b3 100644 (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'
 }