]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/plugins/register-server-setting.model.ts
Handle unavailable videos in embed playlists
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / register-server-setting.model.ts
index 78c5abd1bca0dad23f8bb8e54d066fff5a2a788f..920c3480fc712e054ec3029e4750bcf89286ee9d 100644 (file)
@@ -1,14 +1,15 @@
 export interface RegisterServerSettingOptions {
   name: string
   label: string
-  type: 'input'
+  type: 'input' | 'input-checkbox' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced'
 
-  // If the setting is not private, anyone can view its value
+  // If the setting is not private, anyone can view its value (client code included)
+  // If the setting is private, only server-side hooks can access it
   // Mainly used by the PeerTube client to get admin config
   private: boolean
 
   // Default setting value
-  default?: string
+  default?: string | boolean
 }
 
 export interface RegisteredServerSettings {