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

combine edit into add/edit component

This commit is contained in:
Kyle Spearrin
2018-01-26 14:56:54 -05:00
parent 298b12bf0d
commit eee5f6ff32
11 changed files with 94 additions and 110 deletions

View File

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