1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 03:03:43 +00:00

lazy load history changes

This commit is contained in:
Kyle Spearrin
2018-01-19 14:58:52 -05:00
parent 5adc7556c2
commit 34e2cc2e39
2 changed files with 10 additions and 2 deletions

View File

@@ -10,11 +10,16 @@ export class PasswordGeneratorHistoryController {
editState: any;
addState: any;
i18n: any;
loaded: boolean = false;
constructor(private $state: any, private passwordGenerationService: PasswordGenerationService,
private toastr: any, private $analytics: any, private i18nService: any) {
this.i18n = i18nService;
this.history = passwordGenerationService.getHistory();
passwordGenerationService.getHistory().then((history) => {
this.history = history;
this.loaded = true;
});
}
$onInit() {