diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-22 14:25:32 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-22 14:35:49 +0200 |
commit | 0f319334065fae8756fe7c7eec333000474d07ba (patch) | |
tree | 2ddc1fa8bdb9307b82cf52c91c86d3ba7a33cf62 /shared | |
parent | 87e0b71d36ae3d8f098c2be0ab45a29c9f2854b4 (diff) | |
download | PeerTube-0f319334065fae8756fe7c7eec333000474d07ba.tar.gz PeerTube-0f319334065fae8756fe7c7eec333000474d07ba.tar.zst PeerTube-0f319334065fae8756fe7c7eec333000474d07ba.zip |
Add ability to hide plugin form fields
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/plugins/register-client-form-field.model.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/models/plugins/register-client-form-field.model.ts b/shared/models/plugins/register-client-form-field.model.ts index db61dbc88..2df071337 100644 --- a/shared/models/plugins/register-client-form-field.model.ts +++ b/shared/models/plugins/register-client-form-field.model.ts | |||
@@ -13,6 +13,9 @@ export type RegisterClientFormFieldOptions = { | |||
13 | 13 | ||
14 | // Default setting value | 14 | // Default setting value |
15 | default?: string | boolean | 15 | default?: string | boolean |
16 | |||
17 | // Not supported by plugin setting registration, use registerSettingsScript instead | ||
18 | hidden?: (options: any) => boolean | ||
16 | } | 19 | } |
17 | 20 | ||
18 | export interface RegisterClientVideoFieldOptions { | 21 | export interface RegisterClientVideoFieldOptions { |