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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user