mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
add cipher view types
This commit is contained in:
@@ -7,13 +7,15 @@ import {
|
||||
|
||||
import { CipherService } from 'jslib/abstractions/cipher.service';
|
||||
|
||||
import { CipherView } from 'jslib/models/view/cipherView';
|
||||
|
||||
@Component({
|
||||
selector: 'app-vault',
|
||||
template: template,
|
||||
})
|
||||
export class VaultComponent implements OnInit {
|
||||
ciphers: any[];
|
||||
cipher: any;
|
||||
ciphers: CipherView[];
|
||||
cipher: CipherView;
|
||||
details: string;
|
||||
|
||||
constructor(private cipherService: CipherService) {
|
||||
@@ -23,7 +25,7 @@ export class VaultComponent implements OnInit {
|
||||
this.ciphers = await this.cipherService.getAllDecrypted();
|
||||
}
|
||||
|
||||
viewCipher(cipher: any) {
|
||||
viewCipher(cipher: CipherView) {
|
||||
this.cipher = cipher;
|
||||
this.details = 'view';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user