-<div [formGroup]="form">
- <label *ngIf="setting.label" [attr.for]="setting.name" [innerHTML]="setting.label"></label>
+<div *ngIf="form" [formGroup]="form">
+ <label *ngIf="setting.label && setting.type !== 'input-checkbox'" [attr.for]="setting.name" [innerHTML]="setting.label"></label>
+
+ <my-peertube-checkbox
+ *ngIf="setting.type === 'input-checkbox'"
+ [inputName]="setting.name"
+ [formControlName]="setting.name"
+ [labelInnerHTML]="setting.label"
+ ></my-peertube-checkbox>
<div *ngIf="setting.descriptionHTML" class="label-small-info" [innerHTML]="setting.descriptionHTML"></div>
[classes]="{ 'input-error': formErrors['settings.name'] }"
></my-markdown-textarea>
- <my-peertube-checkbox
- *ngIf="setting.type === 'input-checkbox'"
- [inputName]="setting.name"
- [formControlName]="setting.name"
- [labelInnerHTML]="setting.label"
- ></my-peertube-checkbox>
-
<div *ngIf="setting.type === 'html'" [innerHTML]="setting.html"></div>
<div *ngIf="formErrors[setting.name]" class="form-error">