1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

load item view cipher

This commit is contained in:
Kyle Spearrin
2018-01-24 00:06:05 -05:00
parent 5703782a0f
commit b16ae24d58
7 changed files with 28 additions and 16 deletions

View File

@@ -2,8 +2,10 @@ import * as template from './ciphers.component.html';
import {
Component,
EventEmitter,
Input,
OnChanges,
Output,
} from '@angular/core';
@Component({
@@ -12,6 +14,7 @@ import {
})
export class CiphersComponent implements OnChanges {
@Input() ciphers: any[];
@Output() onCipherClicked = new EventEmitter<any>();
constructor() {
@@ -21,7 +24,7 @@ export class CiphersComponent implements OnChanges {
}
viewCipher(cipher: any) {
console.log(cipher.id);
cipherClicked(cipher: any) {
this.onCipherClicked.emit(cipher);
}
}