]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/plugins/client/register-client-form-field.model.ts
feature/ability to disable video history by default (#5728)
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / client / register-client-form-field.model.ts
index 2df071337a1c5ee347eb33cabb9e56c3eb604ec0..153c4a6eac90eae7ff7f037ec07df7b41bbec410 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) => Promise<{ error: boolean, text?: string }>
 }
 
 export interface RegisterClientVideoFieldOptions {
   type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live'
+
+  // Default to 'plugin-settings'
+  tab?: 'main' | 'plugin-settings'
 }