]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/plugins/register-client-form-field.model.ts
Plugins can register html/select settings
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / register-client-form-field.model.ts
index 641d7490c806a734fe0a1a6f1d15334732eed82a..cdcdaa181d4abe3fa5b40b50efbbbab38914a1f4 100644 (file)
@@ -1,7 +1,13 @@
-export interface RegisterClientFormFieldOptions {
-  name: string
-  label: string
-  type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced'
+export type RegisterClientFormFieldOptions = {
+  name?: string
+  label?: string
+  type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | 'select' | 'html'
+
+  // For select type
+  options?: { value: string, label: string }[]
+
+  // For html type
+  html?: string
 
   descriptionHTML?: string