aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/register-client-form-field.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-22 14:25:32 +0200
committerChocobozzz <me@florianbigard.com>2021-04-22 14:35:49 +0200
commit0f319334065fae8756fe7c7eec333000474d07ba (patch)
tree2ddc1fa8bdb9307b82cf52c91c86d3ba7a33cf62 /shared/models/plugins/register-client-form-field.model.ts
parent87e0b71d36ae3d8f098c2be0ab45a29c9f2854b4 (diff)
downloadPeerTube-0f319334065fae8756fe7c7eec333000474d07ba.tar.gz
PeerTube-0f319334065fae8756fe7c7eec333000474d07ba.tar.zst
PeerTube-0f319334065fae8756fe7c7eec333000474d07ba.zip
Add ability to hide plugin form fields
Diffstat (limited to 'shared/models/plugins/register-client-form-field.model.ts')
-rw-r--r--shared/models/plugins/register-client-form-field.model.ts3
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
18export interface RegisterClientVideoFieldOptions { 21export interface RegisterClientVideoFieldOptions {