1
0
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:
Kyle Spearrin
2019-06-24 21:12:52 -04:00
parent db83b042ff
commit 6c7a0d90df
5 changed files with 12 additions and 4 deletions

View File

@@ -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;
}