1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

password history component

This commit is contained in:
Kyle Spearrin
2018-07-30 10:04:20 -04:00
parent 0b29dc10bf
commit c0f6fa2db1
2 changed files with 38 additions and 0 deletions

View File

@@ -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;