]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add 'input-checkbox' value warning in doc
authorChocobozzz <me@florianbigard.com>
Fri, 10 Dec 2021 13:13:33 +0000 (14:13 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 10 Dec 2021 13:13:33 +0000 (14:13 +0100)
support/doc/plugins/guide.md

index 3785246a7abacc08dcc4bd741d5366b39f5c11e6..4a0d318a7428eda08541adefc502559c72418582 100644 (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