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