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

add/edit components setup

This commit is contained in:
Kyle Spearrin
2018-01-24 17:41:57 -05:00
parent 4f62792bda
commit 18a45886d1
11 changed files with 187 additions and 11 deletions

View File

@@ -15,9 +15,14 @@ import { CipherView } from 'jslib/models/view/cipherView';
})
export class CiphersComponent {
@Input() ciphers: CipherView[];
@Output() onCipherClicked = new EventEmitter<CipherView>();
@Output() onCipherClicked = new EventEmitter<string>();
@Output() onAddCipher = new EventEmitter();
cipherClicked(cipher: CipherView) {
this.onCipherClicked.emit(cipher);
this.onCipherClicked.emit(cipher.id);
}
addCipher() {
this.onAddCipher.emit();
}
}