mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 03:03:43 +00:00
addEditCipherInfo w/ collections from state
This commit is contained in:
@@ -27,7 +27,10 @@ export class PasswordGeneratorComponent extends BasePasswordGeneratorComponent {
|
||||
|
||||
async ngOnInit() {
|
||||
await super.ngOnInit();
|
||||
this.cipherState = await this.stateService.get<CipherView>('addEditCipher');
|
||||
const addEditCipherInfo = await this.stateService.get<any>('addEditCipherInfo');
|
||||
if (addEditCipherInfo != null) {
|
||||
this.cipherState = addEditCipherInfo.cipher;
|
||||
}
|
||||
this.showSelect = this.cipherState != null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user