mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
load item view cipher
This commit is contained in:
@@ -13,12 +13,18 @@ import { CipherService } from 'jslib/abstractions/cipher.service';
|
||||
})
|
||||
export class VaultComponent implements OnInit {
|
||||
ciphers: any[];
|
||||
cipher: any;
|
||||
details: string;
|
||||
|
||||
constructor(private cipherService: CipherService) {
|
||||
|
||||
}
|
||||
|
||||
async ngOnInit() {
|
||||
this.ciphers = await this.cipherService.getAllDecrypted();
|
||||
}
|
||||
|
||||
viewCipher(cipher: any) {
|
||||
this.cipher = cipher;
|
||||
this.details = 'view';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user