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

stub out bulk share

This commit is contained in:
Kyle Spearrin
2018-06-13 00:03:48 -04:00
parent 3edf761549
commit e18f76d2b0
9 changed files with 203 additions and 29 deletions

View File

@@ -50,11 +50,15 @@ export class CiphersComponent extends BaseCiphersComponent {
}
}
getSelected(): string[] {
getSelected(): CipherView[] {
if (this.ciphers == null) {
return [];
}
return this.ciphers.filter((c) => !!(c as any).checked).map((c) => c.id);
return this.ciphers.filter((c) => !!(c as any).checked);
}
getSelectedIds(): string[] {
return this.getSelected().map((c) => c.id);
}
attachments(c: CipherView) {