From b44eee8d81f3ccf0d37f639bb34b49b7120d9955 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 11 Dec 2018 22:10:26 -0500 Subject: [PATCH] hasLoaded moved to load method --- src/app/tools/reused-passwords-report.component.ts | 2 +- src/app/tools/unsecured-websites-report.component.ts | 2 +- src/app/tools/weak-passwords-report.component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/tools/reused-passwords-report.component.ts b/src/app/tools/reused-passwords-report.component.ts index 8733c2872e..6feb71d7ae 100644 --- a/src/app/tools/reused-passwords-report.component.ts +++ b/src/app/tools/reused-passwords-report.component.ts @@ -33,7 +33,6 @@ export class ReusedPasswordsReportComponent implements OnInit { async ngOnInit() { await this.load(); - this.hasLoaded = true; } async load() { @@ -56,6 +55,7 @@ export class ReusedPasswordsReportComponent implements OnInit { this.passwordUseMap.has(c.login.password) && this.passwordUseMap.get(c.login.password) > 1); this.ciphers = reusedPasswordCiphers; this.loading = false; + this.hasLoaded = true; } selectCipher(cipher: CipherView) { diff --git a/src/app/tools/unsecured-websites-report.component.ts b/src/app/tools/unsecured-websites-report.component.ts index e7998ef8df..f35ccadd66 100644 --- a/src/app/tools/unsecured-websites-report.component.ts +++ b/src/app/tools/unsecured-websites-report.component.ts @@ -32,7 +32,6 @@ export class UnsecuredWebsitesReportComponent implements OnInit { async ngOnInit() { await this.load(); - this.hasLoaded = true; } async load() { @@ -46,6 +45,7 @@ export class UnsecuredWebsitesReportComponent implements OnInit { }); this.ciphers = unsecuredCiphers; this.loading = false; + this.hasLoaded = true; } selectCipher(cipher: CipherView) { diff --git a/src/app/tools/weak-passwords-report.component.ts b/src/app/tools/weak-passwords-report.component.ts index 93562307d3..a7b3144791 100644 --- a/src/app/tools/weak-passwords-report.component.ts +++ b/src/app/tools/weak-passwords-report.component.ts @@ -35,7 +35,6 @@ export class WeakPasswordsReportComponent implements OnInit { async ngOnInit() { await this.load(); - this.hasLoaded = true; } async load() { @@ -54,6 +53,7 @@ export class WeakPasswordsReportComponent implements OnInit { }); this.ciphers = weakPasswordCiphers; this.loading = false; + this.hasLoaded = true; } selectCipher(cipher: CipherView) {