aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/register-client-form-field.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-09 11:19:14 +0200
committerChocobozzz <me@florianbigard.com>2021-04-09 11:19:14 +0200
commit32d13b203b3abf756e751994836c28ddd1f4ebd9 (patch)
tree4fdaf486ecf57d39d0fa6cf45aebe1167d7a9438 /shared/models/plugins/register-client-form-field.model.ts
parent55b84d5346f6db35454a1bd102997769021d6470 (diff)
downloadPeerTube-32d13b203b3abf756e751994836c28ddd1f4ebd9.tar.gz
PeerTube-32d13b203b3abf756e751994836c28ddd1f4ebd9.tar.zst
PeerTube-32d13b203b3abf756e751994836c28ddd1f4ebd9.zip
Plugins can register html/select settings
Diffstat (limited to 'shared/models/plugins/register-client-form-field.model.ts')
-rw-r--r--shared/models/plugins/register-client-form-field.model.ts14
1 files changed, 10 insertions, 4 deletions
diff --git a/shared/models/plugins/register-client-form-field.model.ts b/shared/models/plugins/register-client-form-field.model.ts
index 641d7490c..cdcdaa181 100644
--- a/shared/models/plugins/register-client-form-field.model.ts
+++ b/shared/models/plugins/register-client-form-field.model.ts
@@ -1,7 +1,13 @@
1export interface RegisterClientFormFieldOptions { 1export type RegisterClientFormFieldOptions = {
2 name: string 2 name?: string
3 label: string 3 label?: string
4 type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' 4 type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | 'select' | 'html'
5
6 // For select type
7 options?: { value: string, label: string }[]
8
9 // For html type
10 html?: string
5 11
6 descriptionHTML?: string 12 descriptionHTML?: string
7 13