mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
viewHistory event moved to desktop
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: b21cb789da...557b2fc3f0
@@ -1,6 +1,8 @@
|
||||
import {
|
||||
Component,
|
||||
EventEmitter,
|
||||
OnChanges,
|
||||
Output,
|
||||
} from '@angular/core';
|
||||
|
||||
import { ToasterService } from 'angular2-toaster';
|
||||
@@ -16,11 +18,15 @@ import { TotpService } from 'jslib/abstractions/totp.service';
|
||||
|
||||
import { ViewComponent as BaseViewComponent } from 'jslib/angular/components/view.component';
|
||||
|
||||
import { CipherView } from 'jslib/models/view/cipherView';
|
||||
|
||||
@Component({
|
||||
selector: 'app-vault-view',
|
||||
templateUrl: 'view.component.html',
|
||||
})
|
||||
export class ViewComponent extends BaseViewComponent implements OnChanges {
|
||||
@Output() onViewCipherPasswordHistory = new EventEmitter<CipherView>();
|
||||
|
||||
constructor(cipherService: CipherService, totpService: TotpService,
|
||||
tokenService: TokenService, toasterService: ToasterService,
|
||||
cryptoService: CryptoService, platformUtilsService: PlatformUtilsService,
|
||||
@@ -33,4 +39,9 @@ export class ViewComponent extends BaseViewComponent implements OnChanges {
|
||||
async ngOnChanges() {
|
||||
await super.load();
|
||||
}
|
||||
|
||||
viewHistory() {
|
||||
this.analytics.eventTrack.next({ action: 'View Password History' });
|
||||
this.onViewCipherPasswordHistory.emit(this.cipher);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user