diff options
Diffstat (limited to 'shared/models/plugins/register-server-setting.model.ts')
-rw-r--r-- | shared/models/plugins/register-server-setting.model.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/shared/models/plugins/register-server-setting.model.ts b/shared/models/plugins/register-server-setting.model.ts index 920c3480f..6872dc53e 100644 --- a/shared/models/plugins/register-server-setting.model.ts +++ b/shared/models/plugins/register-server-setting.model.ts | |||
@@ -1,15 +1,10 @@ | |||
1 | export interface RegisterServerSettingOptions { | 1 | import { RegisterClientFormFieldOptions } from './register-client-form-field.model' |
2 | name: string | ||
3 | label: string | ||
4 | type: 'input' | 'input-checkbox' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | ||
5 | 2 | ||
3 | export interface RegisterServerSettingOptions extends RegisterClientFormFieldOptions { | ||
6 | // If the setting is not private, anyone can view its value (client code included) | 4 | // If the setting is not private, anyone can view its value (client code included) |
7 | // If the setting is private, only server-side hooks can access it | 5 | // If the setting is private, only server-side hooks can access it |
8 | // Mainly used by the PeerTube client to get admin config | 6 | // Mainly used by the PeerTube client to get admin config |
9 | private: boolean | 7 | private: boolean |
10 | |||
11 | // Default setting value | ||
12 | default?: string | boolean | ||
13 | } | 8 | } |
14 | 9 | ||
15 | export interface RegisteredServerSettings { | 10 | export interface RegisteredServerSettings { |