1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

hasLoaded spinners

This commit is contained in:
Kyle Spearrin
2018-12-11 15:16:45 -05:00
parent 4a0b4de322
commit dc1ffafdf3
4 changed files with 20 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ export class ReusedPasswordsReportComponent implements OnInit {
constructor(private ciphersService: CipherService, private componentFactoryResolver: ComponentFactoryResolver) { }
async ngOnInit() {
this.load();
await this.load();
this.hasLoaded = true;
}
@@ -52,8 +52,9 @@ export class ReusedPasswordsReportComponent implements OnInit {
this.passwordUseMap.set(c.login.password, 1);
}
});
this.ciphers = ciphersWithPasswords.filter((c) =>
const reusedPasswordCiphers = ciphersWithPasswords.filter((c) =>
this.passwordUseMap.has(c.login.password) && this.passwordUseMap.get(c.login.password) > 1);
this.ciphers = reusedPasswordCiphers;
this.loading = false;
}