Add 'input-checkbox' value warning in doc

pull/4631/head
Chocobozzz 2021-12-10 14:13:33 +01:00
parent d17d743051
commit 03a65456f4
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 0 deletions

View File

@ -686,7 +686,11 @@ async function register ({ registerVideoField, peertubeHelpers }) {
name: 'my-field-name,
label: 'My added field',
descriptionHTML: 'Optional description',
// type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | 'select' | 'html'
// /!\ 'input-checkbox' could send "false" and "true" strings instead of boolean
type: 'input-textarea',
default: '',
// Optional, to hide a field depending on the current form state
// liveVideo is in the options object when the user is creating/updating a live