mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[doc] Comment that checkbox should not be required
This commit is contained in:
parent
17ee79846b
commit
b2f975accb
1 changed files with 3 additions and 1 deletions
|
@ -157,7 +157,6 @@
|
|||
// Boolean fields
|
||||
if (data.manifest.arguments.install[k].type == 'boolean') {
|
||||
data.manifest.arguments.install[k].inputType = 'checkbox';
|
||||
data.manifest.arguments.install[k].required = '';
|
||||
|
||||
// Checked or not ?
|
||||
if (typeof data.manifest.arguments.install[k].default !== 'undefined') {
|
||||
|
@ -168,6 +167,9 @@
|
|||
|
||||
// 'default' is used as value, so we need to force it for checkboxes.
|
||||
data.manifest.arguments.install[k].default = 1;
|
||||
|
||||
// Checkbox should not be required to be unchecked
|
||||
data.manifest.arguments.install[k].required = '';
|
||||
}
|
||||
|
||||
// 'password' type input.
|
||||
|
|
Loading…
Reference in a new issue