mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
context menu options for cipher listing
This commit is contained in:
@@ -18,7 +18,9 @@ import { CipherView } from 'jslib/models/view/cipherView';
|
||||
export class CiphersComponent {
|
||||
@Input() activeCipherId: string = null;
|
||||
@Output() onCipherClicked = new EventEmitter<CipherView>();
|
||||
@Output() onCipherRightClicked = new EventEmitter<CipherView>();
|
||||
@Output() onAddCipher = new EventEmitter();
|
||||
@Output() onAddCipherOptions = new EventEmitter();
|
||||
|
||||
loaded: boolean = false;
|
||||
ciphers: CipherView[] = [];
|
||||
@@ -51,7 +53,15 @@ export class CiphersComponent {
|
||||
this.onCipherClicked.emit(cipher);
|
||||
}
|
||||
|
||||
cipherRightClicked(cipher: CipherView) {
|
||||
this.onCipherRightClicked.emit(cipher);
|
||||
}
|
||||
|
||||
addCipher() {
|
||||
this.onAddCipher.emit();
|
||||
}
|
||||
|
||||
addCipherOptions() {
|
||||
this.onAddCipherOptions.emit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user