1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

group add/edit/delete

This commit is contained in:
Kyle Spearrin
2018-07-09 16:27:54 -04:00
parent b774091b83
commit ecfecd295a
13 changed files with 383 additions and 46 deletions

View File

@@ -38,8 +38,8 @@ export class CiphersComponent extends BaseCiphersComponent {
super(cipherService);
}
checkCipher(c: CipherView) {
(c as any).checked = !(c as any).checked;
checkCipher(c: CipherView, select?: boolean) {
(c as any).checked = select == null ? !(c as any).checked : select;
}
selectAll(select: boolean) {
@@ -48,7 +48,7 @@ export class CiphersComponent extends BaseCiphersComponent {
}
const selectCount = select && this.ciphers.length > MaxCheckedCount ? MaxCheckedCount : this.ciphers.length;
for (let i = 0; i < selectCount; i++) {
(this.ciphers[i] as any).checked = select;
this.checkCipher(this.ciphers[i], select);
}
}