mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-02 04:48:57 +02:00
AC-2387 Migrate Nested Checkbox Component (#8794)
This commit is contained in:
parent
c7fce8b298
commit
e2c90310a3
@ -1,28 +1,20 @@
|
|||||||
<div [formGroup]="checkboxes">
|
<div [formGroup]="checkboxes">
|
||||||
<input
|
<bit-form-control>
|
||||||
type="checkbox"
|
<input
|
||||||
[name]="pascalize(parentId)"
|
type="checkbox"
|
||||||
[id]="parentId"
|
bitCheckbox
|
||||||
[formControlName]="parentId"
|
[formControlName]="parentId"
|
||||||
[indeterminate]="parentIndeterminate"
|
[indeterminate]="parentIndeterminate"
|
||||||
/>
|
/>
|
||||||
<label class="!tw-font-normal" [for]="parentId">
|
<bit-label>{{ parentId | i18n }}</bit-label>
|
||||||
{{ parentId | i18n }}
|
</bit-form-control>
|
||||||
</label>
|
<div class="tw-ml-4">
|
||||||
<div class="tw-ml-6">
|
|
||||||
<ng-container *ngFor="let c of checkboxes.controls | keyvalue; trackBy: key">
|
<ng-container *ngFor="let c of checkboxes.controls | keyvalue; trackBy: key">
|
||||||
<div class="" *ngIf="c.key != parentId">
|
<div *ngIf="c.key != parentId">
|
||||||
<input
|
<bit-form-control>
|
||||||
class=""
|
<input type="checkbox" bitCheckbox [formControl]="c.value" (change)="onChildCheck()" />
|
||||||
type="checkbox"
|
<bit-label>{{ c.key | i18n }}</bit-label>
|
||||||
[name]="pascalize(c.key)"
|
</bit-form-control>
|
||||||
[id]="c.key"
|
|
||||||
[formControl]="c.value"
|
|
||||||
(change)="onChildCheck()"
|
|
||||||
/>
|
|
||||||
<label class="!tw-font-normal" [for]="c.key">
|
|
||||||
{{ c.key | i18n }}
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user