mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
double click to launch cipher
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<a *ngFor="let c of ciphers" (click)="selectCipher(c)" href="#" appStopClick title="{{title}}"
|
||||
<a *ngFor="let c of ciphers" (click)="selectCipher(c)" (dblclick)="doubleSelectCipher(c)"
|
||||
href="#" appStopClick title="{{title}}"
|
||||
class="box-content-row box-content-row-flex">
|
||||
<div class="row-main">
|
||||
<app-vault-icon [cipher]="c"></app-vault-icon>
|
||||
|
||||
@@ -25,6 +25,7 @@ import { PopupUtilsService } from '../services/popup-utils.service';
|
||||
})
|
||||
export class CiphersListComponent {
|
||||
@Output() onSelected = new EventEmitter<CipherView>();
|
||||
@Output() onDoubleSelected = new EventEmitter<CipherView>();
|
||||
@Output() onView = new EventEmitter<CipherView>();
|
||||
@Input() ciphers: CipherView[];
|
||||
@Input() showView = false;
|
||||
@@ -38,6 +39,10 @@ export class CiphersListComponent {
|
||||
this.onSelected.emit(c);
|
||||
}
|
||||
|
||||
doubleSelectCipher(c: CipherView) {
|
||||
this.onDoubleSelected.emit(c);
|
||||
}
|
||||
|
||||
viewCipher(c: CipherView) {
|
||||
this.onView.emit(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user