mirror of
https://github.com/bitwarden/jslib
synced 2025-12-10 21:33:17 +00:00
Load component on init, then watch (#669)
This commit is contained in:
@@ -59,6 +59,8 @@ export class LockComponent implements OnInit {
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
|
// Load the first and observe updates
|
||||||
|
await this.load();
|
||||||
this.stateService.activeAccount.subscribe(async (_userId) => {
|
this.stateService.activeAccount.subscribe(async (_userId) => {
|
||||||
await this.load();
|
await this.load();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user