1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03: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

@@ -75,14 +75,12 @@ export class BulkShareComponent implements OnInit {
this.toasterService.popAsync('success', null, this.i18nService.t('sharedItems'));
}
check(c: CollectionView) {
(c as any).checked = !(c as any).checked;
check(c: CollectionView, select?: boolean) {
(c as any).checked = select == null ? !(c as any).checked : select;
}
selectAll(select: false) {
selectAll(select: boolean) {
const collections = select ? this.collections : this.writeableCollections;
for (const c of collections) {
(c as any).checked = select;
}
collections.forEach((c) => this.check(c, select));
}
}