mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
addEditCipherInfo w/ collections from state
This commit is contained in:
@@ -118,7 +118,11 @@ export class AddEditComponent extends BaseAddEditComponent {
|
||||
async generatePassword(): Promise<boolean> {
|
||||
const confirmed = await super.generatePassword();
|
||||
if (confirmed) {
|
||||
this.stateService.save('addEditCipher', this.cipher);
|
||||
this.stateService.save('addEditCipherInfo', {
|
||||
cipher: this.cipher,
|
||||
collectionIds: this.collections == null ? [] :
|
||||
this.collections.filter((c) => (c as any).checked).map((c) => c.id),
|
||||
});
|
||||
this.router.navigate(['generator']);
|
||||
}
|
||||
return confirmed;
|
||||
|
||||
Reference in New Issue
Block a user