mirror of
https://github.com/bitwarden/jslib
synced 2025-12-20 10:13:43 +00:00
[jslib] Updated shared components for cipher cloning (#60)
This commit is contained in:
@@ -33,6 +33,7 @@ const BroadcasterSubscriptionId = 'ViewComponent';
|
||||
export class ViewComponent implements OnDestroy, OnInit {
|
||||
@Input() cipherId: string;
|
||||
@Output() onEditCipher = new EventEmitter<CipherView>();
|
||||
@Output() onCloneCipher = new EventEmitter<CipherView>();
|
||||
|
||||
cipher: CipherView;
|
||||
showPassword: boolean;
|
||||
@@ -105,6 +106,10 @@ export class ViewComponent implements OnDestroy, OnInit {
|
||||
this.onEditCipher.emit(this.cipher);
|
||||
}
|
||||
|
||||
clone() {
|
||||
this.onCloneCipher.emit(this.cipher);
|
||||
}
|
||||
|
||||
togglePassword() {
|
||||
this.platformUtilsService.eventTrack('Toggled Password');
|
||||
this.showPassword = !this.showPassword;
|
||||
|
||||
Reference in New Issue
Block a user