1
0
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:
Kyle Spearrin
2018-01-24 12:20:01 -05:00
parent f2923d9c81
commit 7e89a9ba3d
4 changed files with 13 additions and 13 deletions

View File

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