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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user