1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

record activity for lock

This commit is contained in:
Kyle Spearrin
2018-02-09 23:25:18 -05:00
parent a77b16b766
commit 6e77916a49
4 changed files with 33 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import {
Component,
ComponentFactoryResolver,
NgZone,
OnDestroy,
OnInit,
ViewChild,
ViewContainerRef,
@@ -45,7 +46,7 @@ const SyncInterval = 6 * 60 * 60 * 1000; // 6 hours
selector: 'app-vault',
template: template,
})
export class VaultComponent implements OnInit {
export class VaultComponent implements OnInit, OnDestroy {
@ViewChild(AddEditComponent) addEditComponent: AddEditComponent;
@ViewChild(CiphersComponent) ciphersComponent: CiphersComponent;
@ViewChild(GroupingsComponent) groupingsComponent: GroupingsComponent;
@@ -143,6 +144,10 @@ export class VaultComponent implements OnInit {
}
}
ngOnDestroy() {
this.broadcasterService.unsubscribe();
}
async load() {
this.route.queryParams.subscribe(async (params) => {
await this.groupingsComponent.load();