mirror of
https://github.com/bitwarden/desktop.git
synced 2024-06-26 10:36:19 +02:00
viewHistory event moved to desktop
This commit is contained in:
parent
1fc1768d58
commit
cbf66d16b8
2
jslib
2
jslib
|
@ -1 +1 @@
|
||||||
Subproject commit b21cb789da2f93a36908cdfb0dba6e701102b87d
|
Subproject commit 557b2fc3f093ee1e2eb4515c2e33c613f083c327
|
|
@ -1,6 +1,8 @@
|
||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
|
EventEmitter,
|
||||||
OnChanges,
|
OnChanges,
|
||||||
|
Output,
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { ToasterService } from 'angular2-toaster';
|
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 { ViewComponent as BaseViewComponent } from 'jslib/angular/components/view.component';
|
||||||
|
|
||||||
|
import { CipherView } from 'jslib/models/view/cipherView';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-vault-view',
|
selector: 'app-vault-view',
|
||||||
templateUrl: 'view.component.html',
|
templateUrl: 'view.component.html',
|
||||||
})
|
})
|
||||||
export class ViewComponent extends BaseViewComponent implements OnChanges {
|
export class ViewComponent extends BaseViewComponent implements OnChanges {
|
||||||
|
@Output() onViewCipherPasswordHistory = new EventEmitter<CipherView>();
|
||||||
|
|
||||||
constructor(cipherService: CipherService, totpService: TotpService,
|
constructor(cipherService: CipherService, totpService: TotpService,
|
||||||
tokenService: TokenService, toasterService: ToasterService,
|
tokenService: TokenService, toasterService: ToasterService,
|
||||||
cryptoService: CryptoService, platformUtilsService: PlatformUtilsService,
|
cryptoService: CryptoService, platformUtilsService: PlatformUtilsService,
|
||||||
|
@ -33,4 +39,9 @@ export class ViewComponent extends BaseViewComponent implements OnChanges {
|
||||||
async ngOnChanges() {
|
async ngOnChanges() {
|
||||||
await super.load();
|
await super.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
viewHistory() {
|
||||||
|
this.analytics.eventTrack.next({ action: 'View Password History' });
|
||||||
|
this.onViewCipherPasswordHistory.emit(this.cipher);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user