mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
password history component
This commit is contained in:
@@ -27,6 +27,7 @@ import { LoginUriView } from '../../models/view/loginUriView';
|
||||
export class ViewComponent implements OnDestroy {
|
||||
@Input() cipherId: string;
|
||||
@Output() onEditCipher = new EventEmitter<CipherView>();
|
||||
@Output() onViewCipherPasswordHistory = new EventEmitter<CipherView>();
|
||||
|
||||
cipher: CipherView;
|
||||
showPassword: boolean;
|
||||
@@ -159,6 +160,11 @@ export class ViewComponent implements OnDestroy {
|
||||
a.downloading = false;
|
||||
}
|
||||
|
||||
viewHistory() {
|
||||
this.analytics.eventTrack.next({ action: 'View Password History' });
|
||||
this.onViewCipherPasswordHistory.emit(this.cipher);
|
||||
}
|
||||
|
||||
private cleanUp() {
|
||||
this.totpCode = null;
|
||||
this.cipher = null;
|
||||
|
||||
Reference in New Issue
Block a user