1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-02 18:17:46 +01:00

[EC-1050] add CL checkbox to tables (#4600)

* [EC-1050] use CL checkbox on Members table

* [EC-1050] use CL checkboxes on vault table

* [EC-1050] use CL checkboxes on Groups table
This commit is contained in:
Jake Fink 2023-01-31 12:48:52 -05:00 committed by GitHub
parent 4d6e333d8d
commit 2e4fd33ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -45,6 +45,7 @@
<th bitCell class="tw-w-20"> <th bitCell class="tw-w-20">
<input <input
type="checkbox" type="checkbox"
bitCheckbox
class="tw-mr-2" class="tw-mr-2"
(change)="toggleAllVisible($event)" (change)="toggleAllVisible($event)"
id="selectAll" id="selectAll"
@ -77,7 +78,7 @@
<ng-template body> <ng-template body>
<tr bitRow *ngFor="let g of visibleGroups"> <tr bitRow *ngFor="let g of visibleGroups">
<td bitCell (click)="check(g)" class="tw-cursor-pointer"> <td bitCell (click)="check(g)" class="tw-cursor-pointer">
<input type="checkbox" [(ngModel)]="g.checked" /> <input type="checkbox" bitCheckbox [(ngModel)]="g.checked" />
</td> </td>
<td bitCell class="tw-cursor-pointer tw-font-bold" (click)="edit(g)"> <td bitCell class="tw-cursor-pointer tw-font-bold" (click)="edit(g)">
<button bitLink> <button bitLink>

View File

@ -77,6 +77,7 @@
<th bitCell class="tw-w-20"> <th bitCell class="tw-w-20">
<input <input
type="checkbox" type="checkbox"
bitCheckbox
class="tw-mr-1" class="tw-mr-1"
(change)="selectAll($any($event.target).checked)" (change)="selectAll($any($event.target).checked)"
id="selectAll" id="selectAll"
@ -135,7 +136,7 @@
<ng-template body> <ng-template body>
<tr bitRow *ngFor="let u of searchedUsers" alignContent="middle"> <tr bitRow *ngFor="let u of searchedUsers" alignContent="middle">
<td bitCell (click)="checkUser(u)"> <td bitCell (click)="checkUser(u)">
<input type="checkbox" [(ngModel)]="$any(u).checked" /> <input type="checkbox" bitCheckbox [(ngModel)]="$any(u).checked" />
</td> </td>
<td bitCell (click)="edit(u)" class="tw-cursor-pointer"> <td bitCell (click)="edit(u)" class="tw-cursor-pointer">
<div class="tw-flex tw-items-center"> <div class="tw-flex tw-items-center">

View File

@ -14,6 +14,7 @@
<input <input
class="tw-mr-2" class="tw-mr-2"
type="checkbox" type="checkbox"
bitCheckbox
id="checkAll" id="checkAll"
(change)="checkAll($any($event.target).checked)" (change)="checkAll($any($event.target).checked)"
[(ngModel)]="isAllChecked" [(ngModel)]="isAllChecked"
@ -85,6 +86,7 @@
*ngIf="canDeleteCollection(col.node)" *ngIf="canDeleteCollection(col.node)"
class="tw-cursor-pointer" class="tw-cursor-pointer"
type="checkbox" type="checkbox"
bitCheckbox
[(ngModel)]="$any(col).checked" [(ngModel)]="$any(col).checked"
appStopProp appStopProp
/> />
@ -170,7 +172,7 @@
alignContent="middle" alignContent="middle"
> >
<td bitCell (click)="checkRow(c)" appStopProp> <td bitCell (click)="checkRow(c)" appStopProp>
<input type="checkbox" [(ngModel)]="$any(c).checked" appStopProp /> <input type="checkbox" bitCheckbox [(ngModel)]="$any(c).checked" appStopProp />
</td> </td>
<td bitCell> <td bitCell>
<app-vault-icon [cipher]="c"></app-vault-icon> <app-vault-icon [cipher]="c"></app-vault-icon>