1
0
mirror of https://github.com/bitwarden/web synced 2026-01-02 16:43:24 +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

@@ -87,14 +87,12 @@ export class ShareComponent implements OnInit, OnDestroy {
await this.formPromise;
}
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) {
const collections = select ? this.collections : this.writeableCollections;
for (const c of collections) {
(c as any).checked = select;
}
collections.forEach((c) => this.check(c, select));
}
}