]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/plugins/register-server-setting.model.ts
Cleanup shared models
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / register-server-setting.model.ts
index 65a1817054664e84e8e6b930373d131b99a4c406..9f45c3c370f781a4310466b5cd7dd77d49b0f29b 100644 (file)
@@ -1,15 +1,10 @@
-export interface RegisterServerSettingOptions {
-  name: string
-  label: string
-  type: 'input'
+import { RegisterClientFormFieldOptions } from './register-client-form-field.model'
 
+export type RegisterServerSettingOptions = RegisterClientFormFieldOptions & {
   // 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
 }
 
 export interface RegisteredServerSettings {