Asset tracking.

Asset caching.
refs #37
This commit is contained in:
softsimon
2020-05-05 15:26:23 +07:00
parent d662292afb
commit 20c7ee98e7
14 changed files with 127 additions and 53 deletions

View File

@@ -20,7 +20,11 @@ export class AssetsComponent implements OnInit {
) { }
ngOnInit() {
this.assetsService.getAssetsJson$()
setTimeout(() => this.getAssets());
}
getAssets() {
this.assetsService.getAssetsJson$
.subscribe((assets) => {
this.assets = Object.values(assets);
this.assets.push({
@@ -36,6 +40,6 @@ export class AssetsComponent implements OnInit {
this.error = error;
this.isLoading = false;
});
}
}
}